switchList

fun <T> switchList(first: T, vararg rest: T, config: OptionListConfig<T>.() -> Unit = {}): FieldVisualizer<List<T>>(source)

Creates a list of Switches that is bound to a Field. This controls lets a user select multiple options from a list. This control lets a user ignore selection entirely, which would result in an empty list.

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