SelectOptGroup

open class SelectOptGroup(label: String, options: List<<ERROR CLASS>>?, maxOptions: Int?, disabled: Boolean, className: String?, init: SelectOptGroup.() -> Unit?)

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

maxOptions

maximal number of selected options in the group

disabled

renders a disabled group

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
fun SelectOptGroup(label: String, options: List<<ERROR CLASS>>? = null, maxOptions: Int? = null, disabled: Boolean = false, className: String? = null, init: SelectOptGroup.() -> Unit? = null)

Functions

Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <ERROR CLASS>)
Link copied to clipboard
open fun render(): <ERROR CLASS>

Properties

Link copied to clipboard
var disabled: <ERROR CLASS>

Determines if the group is disabled.

Link copied to clipboard
var label: <ERROR CLASS>

A label for the group.

Link copied to clipboard
var maxOptions: <ERROR CLASS>

Maximal number of selected options in the group.

Link copied to clipboard
var options: <ERROR CLASS>

A list of options (label to value pairs) for the group.

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.