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

Interface TrackBySelection

src/cdk-experimental/selection/selection-set.ts:16–21  ·  view source on GitHub ↗

* Maintains a set of selected values. One or more values can be added to or removed from the * selection.

Source from the content-addressed store, hash-verified

14 * selection.
15 */
16interface TrackBySelection<T> {
17 isSelected(value: SelectableWithIndex<T>): boolean;
18 select(...values: SelectableWithIndex<T>[]): void;
19 deselect(...values: SelectableWithIndex<T>[]): void;
20 changed: Subject<SelectionChange<T>>;
21}
22
23/**
24 * A selectable value with an optional index. The index is required when the selection is used with

Callers 24

isSelectedMethod · 0.65
isAllSelectedMethod · 0.65
isPartialSelectedMethod · 0.65
_isSelectedMethod · 0.65
selection.spec.tsFile · 0.65
checkboxLabelMethod · 0.65
toggleSelectionMethod · 0.65
_selectAllMethod · 0.65
toggleAllRowsMethod · 0.65

Implementers 6

SelectionSetsrc/cdk-experimental/selection/selecti
MatChipOptionHarnesssrc/material/chips/testing/chip-option
MatListOptionHarnesssrc/material/list/testing/selection-li
SelectionModelsrc/cdk/collections/selection-model.ts
CdkOptionsrc/cdk/listbox/listbox.ts
CdkListboxsrc/cdk/listbox/listbox.ts

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…