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

Method _getFocusIndex

src/cdk/stepper/stepper.ts:545–547  ·  view source on GitHub ↗

Returns the index of the currently-focused step header.

()

Source from the content-addressed store, hash-verified

543
544 /** Returns the index of the currently-focused step header. */
545 _getFocusIndex(): number | null {
546 return this._keyManager ? this._keyManager.activeItemIndex : this._selectedIndex();
547 }
548
549 private _updateSelectedItemIndex(newIndex: number): void {
550 const stepsArray = this.steps.toArray();

Calls

no outgoing calls