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

Method _getTabIndex

src/cdk/listbox/listbox.ts:230–235  ·  view source on GitHub ↗

Get the tabindex for this option.

()

Source from the content-addressed store, hash-verified

228
229 /** Get the tabindex for this option. */
230 protected _getTabIndex() {
231 if (this.listbox.useActiveDescendant || this.disabled) {
232 return -1;
233 }
234 return this.isActive() ? this.enabledTabIndex : -1;
235 }
236}
237
238@Directive({

Callers

nothing calls this directly

Calls 1

isActiveMethod · 0.95

Tested by

no test coverage detected