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

Method getText

src/material/chips/testing/chip-harness.ts:52–57  ·  view source on GitHub ↗

Gets a promise for the text content the option.

()

Source from the content-addressed store, hash-verified

50
51 /** Gets a promise for the text content the option. */
52 async getText(): Promise<string> {
53 return (await this.host()).text({
54 exclude:
55 '.mat-mdc-chip-avatar, .mat-mdc-chip-leading-icon, .mat-mdc-chip-trailing-icon, .mat-icon',
56 });
57 }
58
59 /** Whether the chip is disabled. */
60 async isDisabled(): Promise<boolean> {

Callers 5

withMethod · 0.45
withMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected