Select Opt Group
open class SelectOptGroup(label: String, options: List<<Error class: unknown class>>? = null, maxOptions: Int? = null, disabled: Boolean = false, className: String? = null, init: SelectOptGroup.() -> Unit? = null)
The helper container for adding option groups to Select.
The option group can be populated directly from options parameter or manually by adding SelectOption components to the container.
Parameters
label
the label of the group
options
an optional list of options (label to value pairs) for the group
max Options
maximal number of selected options in the group
disabled
renders a disabled group
class Name
CSS class names
init
an initializer extension function
Constructors
Link copied to clipboard
fun SelectOptGroup(label: String, options: List<<Error class: unknown class>>? = null, maxOptions: Int? = null, disabled: Boolean = false, className: String? = null, init: SelectOptGroup.() -> Unit? = null)
Functions
Properties
Extensions
Link copied to clipboard
fun SelectOptGroup.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, className: String? = null, init: SelectOption.() -> Unit? = null): SelectOption
DSL builder extension function.