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

Function focusIndex

src/material/tabs/paginated-tab-header.ts:395–397  ·  view source on GitHub ↗

Tracks which element has focus; used for keyboard navigation

()

Source from the content-addressed store, hash-verified

393
394 /** Tracks which element has focus; used for keyboard navigation */
395 get focusIndex(): number {
396 return this._keyManager ? this._keyManager.activeItemIndex! : 0;
397 }
398
399 /** When the focus index is set, we must manually send focus to the correct label */
400 set focusIndex(value: number) {

Callers

nothing calls this directly

Calls 2

_isValidIndexMethod · 0.45
setActiveItemMethod · 0.45

Tested by

no test coverage detected