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 := true
Enable or disable selection.
- index
-
abstract Int? index
Get or set a single index
- indexes
-
Selected zero based indexes
- isEmpty
-
abstract Bool isEmpty()
Is the selection currently empty
- item
-
abstract Obj? item
Get or set a single item
- items
-
Selected items.
- multi
-
Bool multi := false
True to enable multiple selection, false for single selection.
- size
-
abstract Int size()
Number of selected items