abstract class domkit::Selection
sys::Obj domkit::Selection
@Js
Selection manages the selected items and/or indexes
- clear
-
Void clear()Clear the selection
- enabled
-
Bool enabled := trueEnable or disable selection.
- index
-
abstract Int? indexGet or set a single index
- indexes
-
abstract Int[] indexesSelected zero based indexes
- isEmpty
-
abstract Bool isEmpty()Is the selection currently empty
- item
-
abstract Obj? itemGet or set a single item
- items
-
abstract Obj[] itemsSelected items.
- multi
-
Bool multi := falseTrue to enable multiple selection, false for single selection.
- size
-
abstract Int size()Number of selected items