selectionMode

var selectionMode: SelectionMode

Selection mode to be used for 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.