Collection of elements for selection.
Index of last selected/deselected element in items collection.
Performs check that every selected element is actually selected.
Deselects all elements in items collection.
Performs application-defined logic for service destroy.
Returns index of last selected element from items collection.
index of last selected element. -1 if nothing is selected.
Returns index of first selected element from items collection.
index of first selected element. -1 if nothing is selected.
Returns all elements from items collection which are marked as selected.
collection of selected elements.
Checks that at least one element selected in items collection.
true
if anything is selected.
Checks that element at specified index is selected.
index of element in items collection to check.
true
if element is selected.
Checks that all elements inside specified range are selected in items collection.
true
if all elements inside specified range are selected.
Selects all elements in items collection.
Selects first element in items collection.
Selects last element in items collection.
Selects range of elements in items collection.
index of element from which selection range begins.
index of element on which selection range ends.
Toggles selection of element at the specified index.
index of element in items collection.
true
if previously selected elements must stay selected after current selection.
Optional function which can be used to compare items elements.
This function can be used by checkSelection.
Also it's reasonable to use this function for getItemIndex.
index of element in items collection.
Generated using TypeDoc
Represents possible operations with selection model.
Default implementation in this library is DefaultSelectionService, but you can extend it or replace with your own implementation.