optionalRadioList

fun <T : Any> optionalRadioList(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. This control lets a user ignore selection entirely and therefore the resulting type is T?.

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