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

Method ariaSelected

src/material/chips/chip-option.ts:134–136  ·  view source on GitHub ↗

* The ARIA selected applied to the chip. Conforms to WAI ARIA best practices for listbox * interaction patterns. * * From [WAI ARIA Listbox authoring practices guide]( * https://www.w3.org/WAI/ARIA/apg/patterns/listbox/): * "If any options are selected, each selected option has eithe

()

Source from the content-addressed store, hash-verified

132 * VoiceOver reading every option as "selected" (#25736).
133 */
134 get ariaSelected(): string | null {
135 return this.selectable ? this.selected.toString() : null;
136 }
137
138 /** The unstyled chip selector for this component. */
139 protected override basicChipAttrName = 'mat-basic-chip-option';

Callers 2

constructorMethod · 0.80
grid.spec.tsFile · 0.80

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected