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

Method getText

src/material/core/testing/option-harness.ts:50–52  ·  view source on GitHub ↗

Gets the option's label text.

()

Source from the content-addressed store, hash-verified

48
49 /** Gets the option's label text. */
50 async getText(): Promise<string> {
51 return (await this._text()).text();
52 }
53
54 /** Gets whether the option is disabled. */
55 async isDisabled(): Promise<boolean> {

Callers 3

withMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected