radioList

fun <T> radioList(first: T, vararg rest: 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

first

item in the list

rest

of the items in the list

config

used to control the resulting component