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

Method _getTabIndex

src/material/menu/menu-item.ts:127–129  ·  view source on GitHub ↗

Used to set the `tabindex`.

()

Source from the content-addressed store, hash-verified

125
126 /** Used to set the `tabindex`. */
127 _getTabIndex(): string {
128 return this.disabled && !this.disabledInteractive ? '-1' : '0';
129 }
130
131 /** Gets the `aria-disabled` value for the menu item. */
132 _getAriaDisabled(): boolean | null {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected