MCPcopy Create free account
hub / github.com/angular/components / _setActiveItem

Method _setActiveItem

src/cdk/tree/tree.ts:1479–1486  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1477 }
1478
1479 _setActiveItem() {
1480 if (this.isDisabled) {
1481 return;
1482 }
1483 this._shouldFocus = false;
1484 this._tree._keyManager.focusItem(this);
1485 this._shouldFocus = true;
1486 }
1487
1488 _emitExpansionState(expanded: boolean) {
1489 this.expandedChange.emit(expanded);

Callers

nothing calls this directly

Calls 1

focusItemMethod · 0.65

Tested by

no test coverage detected