SingleSelect
class SingleSelect<T>(val selected: MutableState<Int?>, val selectOnRadioButtonClickOnly: Boolean = true, val closeOnSelect: Boolean = false) : DialogList.SelectionMode<T>
single selection mode for the list dialog
Parameters
selected
holds the currently selected item id
selectOnRadioButtonClickOnly
if true, only clicks on the radio button will select an item, otherwise a click on the item itself will select it as well
closeOnSelect
if true, the dialog will be closed as soon as a selection is made
Constructors
Link copied to clipboard
constructor(selected: MutableState<Int?>, selectOnRadioButtonClickOnly: Boolean = true, closeOnSelect: Boolean = false)