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

Method _getTabIndex

src/cdk/listbox/listbox.ts:848–853  ·  view source on GitHub ↗

Get the tabindex for the listbox.

()

Source from the content-addressed store, hash-verified

846
847 /** Get the tabindex for the listbox. */
848 protected _getTabIndex() {
849 if (this.disabled) {
850 return -1;
851 }
852 return this.useActiveDescendant || !this.listKeyManager.activeItem ? this.enabledTabIndex : -1;
853 }
854
855 /** Initialize the key manager. */
856 private _initKeyManager() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected