radioList

fun <T> radioList(vararg items: T, config: OptionListConfig<T>.() -> Unit = {}): FieldVisualizer<T>(source)

Creates a list of RadioButtons within a ButtonGroup that is bound to a Field. This controls lets a user select an option from a list.

NOTE: This does not provide an initial value for the associated field, so one must be provided at the form creation level if a default is desired.

Parameters

T

is the type of the bounded field

items

of the list

config

used to control the resulting component