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

Method _getTabIndex

src/material/tabs/tab-group.ts:561–564  ·  view source on GitHub ↗

Retrieves the tabindex for the tab.

(index: number)

Source from the content-addressed store, hash-verified

559
560 /** Retrieves the tabindex for the tab. */
561 _getTabIndex(index: number): number {
562 const targetIndex = this._lastFocusedTabIndex ?? this.selectedIndex;
563 return index === targetIndex ? 0 : -1;
564 }
565
566 /** Callback for when the focused state of a tab has changed. */
567 _tabFocusChanged(focusOrigin: FocusOrigin, index: number) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected