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

Method select

src/aria/private/toolbar/toolbar.ts:151–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 }
150
151 select() {
152 const group = this.inputs.activeItem()?.group();
153
154 if (!group?.multi()) {
155 group?.inputs.items().forEach(i => this.listBehavior.deselect(i));
156 }
157
158 this.listBehavior.toggle();
159 }
160
161 constructor(readonly inputs: ToolbarInputs<V>) {
162 this.orientation = inputs.orientation;

Callers 2

ToolbarPatternClass · 0.95
_gotoMethod · 0.95

Calls 3

activeItemMethod · 0.80
deselectMethod · 0.65
toggleMethod · 0.65

Tested by

no test coverage detected