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

Method getAriaLabel

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

Gets the aria-label of the tab.

()

Source from the content-addressed store, hash-verified

46
47 /** Gets the aria-label of the tab. */
48 async getAriaLabel(): Promise<string | null> {
49 return (await this.host()).getAttribute('aria-label');
50 }
51
52 /** Gets the value of the "aria-labelledby" attribute. */
53 async getAriaLabelledby(): Promise<string | null> {

Calls 1

getAttributeMethod · 0.65

Tested by

no test coverage detected