singleChoiceList

fun <T, M : ListModel<T>> singleChoiceList(vararg items: T, itemVisualizer: ItemVisualizer<T, IndexedItem> = StringVisualizer(), config: (List<T, *>) -> Unit = {}): FieldVisualizer<T>(source)

Creates a List control that is bound to a Field. This controls lets a user select a single option from a list. This behaves like radioList.

Parameters

T

is the type of the items in the bounded field

items

in the list

itemVisualizer

used to render items in the list

config

used to control the resulting component


fun singleChoiceList(progression: IntProgression, itemVisualizer: ItemVisualizer<Int, IndexedItem> = StringVisualizer(), config: (List<Int, *>) -> Unit = {}): FieldVisualizer<Int>(source)

Creates a List control that is bound to a Field. This controls lets a user select a single option from a list.

Parameters

progression

to use for values

itemVisualizer

used to render items in the list

config

used to control the resulting component