class

Selection

@Js
abstract class Selection : Obj

Selection manages the selected items and/or indexes

fields item

Get or set a single item

indexes

Selected zero based indexes

index

Get or set a single index

items

Selected items

enabled

Enable or disable selection

multi

True to enable multiple selection, false for single selection

methods size

Number of selected items

clear

Clear the selection

isEmpty

Is the selection currently empty

clear Void clear()

Clear the selection

enabled Bool : enabled

Enable or disable selection.

index abstract Int? : index

Get or set a single index

indexes abstract Int[] : 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 abstract Obj[] : items

Selected items.

multi Bool : multi

True to enable multiple selection, false for single selection.

size abstract Int size()

Number of selected items

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST