MCPcopy Index your code
hub / github.com/angular/components / getTriggerText

Method getTriggerText

src/material/menu/testing/menu-harness.ts:60–62  ·  view source on GitHub ↗

Gets the text of the menu's trigger element.

()

Source from the content-addressed store, hash-verified

58
59 /** Gets the text of the menu's trigger element. */
60 async getTriggerText(): Promise<string> {
61 return (await this.host()).text();
62 }
63
64 /** Focuses the menu. */
65 async focus(): Promise<void> {

Callers 3

withMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected