selectionModeProperty

val selectionModeProperty: Property<SelectionMode>

Property for the selectionMode of this UIComponent.

Changing from SelectionMode.SINGLE to SelectionMode.MULTIPLE keeps selection as is. Changing from SelectionMode.MULTIPLE to SelectionMode.SINGLE selects the item that was last selected. Changing from or to SelectionMode.NONE clears selection.

Selected items and indices may be observed by registering observers on selectedItems and selectedIndices.