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

Method getText

src/aria/menu/testing/menu-harness.ts:34–36  ·  view source on GitHub ↗

Gets the text content of the menu item.

()

Source from the content-addressed store, hash-verified

32
33 /** Gets the text content of the menu item. */
34 async getText(): Promise<string> {
35 return (await this.host()).text();
36 }
37
38 /** Whether the menu item is disabled. */
39 async isDisabled(): Promise<boolean> {

Callers 2

withMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected