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

Method isSelected

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

Gets whether the option is selected.

()

Source from the content-addressed store, hash-verified

58
59 /** Gets whether the option is selected. */
60 async isSelected(): Promise<boolean> {
61 return (await this.host()).hasClass('mdc-list-item--selected');
62 }
63
64 /** Gets whether the option is active. */
65 async isActive(): Promise<boolean> {

Callers

nothing calls this directly

Calls 1

hasClassMethod · 0.65

Tested by

no test coverage detected