abstract class domkit::Selection

sys::Obj
  domkit::Selection

@Js

Source

Selection manages the selected items and/or indexes

clear

Void clear()

Source

Clear the selection

enabled

Bool enabled := true

Source

Enable or disable selection.

index

abstract Int? index

Source

Get or set a single index

indexes

abstract Int[] indexes

Source

Selected zero based indexes

isEmpty

abstract Bool isEmpty()

Source

Is the selection currently empty

item

abstract Obj? item

Source

Get or set a single item

items

abstract Obj[] items

Source

Selected items.

multi

Bool multi := false

Source

True to enable multiple selection, false for single selection.

size

abstract Int size()

Source

Number of selected items