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

Method isDisabled

src/material/tabs/testing/tab-harness.ts:64–67  ·  view source on GitHub ↗

Whether the tab is disabled.

()

Source from the content-addressed store, hash-verified

62
63 /** Whether the tab is disabled. */
64 async isDisabled(): Promise<boolean> {
65 const hostEl = await this.host();
66 return (await hostEl.getAttribute('aria-disabled')) === 'true';
67 }
68
69 /** Selects the given tab by clicking on the label. Tab cannot be selected if disabled. */
70 async select(): Promise<void> {

Calls 1

getAttributeMethod · 0.65

Tested by

no test coverage detected