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

Method select

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

Source from the content-addressed store, hash-verified

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