MCPcopy
hub / github.com/angular/components / _selectAll

Method _selectAll

src/cdk-experimental/selection/selection.ts:191–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189 }
190
191 private _selectAll() {
192 const toSelect: SelectableWithIndex<T>[] = [];
193 this._data.forEach((value, index) => {
194 toSelect.push({value, index});
195 });
196
197 this._selection.select(...toSelect);
198 }
199
200 private _clearAll() {
201 const toDeselect: SelectableWithIndex<T>[] = [];

Callers 1

toggleSelectAllMethod · 0.95

Calls 2

pushMethod · 0.65
selectMethod · 0.65

Tested by

no test coverage detected