SelectOption

open class SelectOption(value: String?, label: String?, subtext: String?, icon: String?, divider: Boolean, disabled: Boolean, selected: Boolean, className: String?, init: SelectOption.() -> Unit?)

The helper component for adding options to Select or SelectOptGroup.

Parameters

value

the value of the option

label

the label of the option

subtext

the small subtext after the label of the option

icon

the icon before the label of the option

divider

renders this option as a divider

disabled

renders a disabled option

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
fun 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)

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 option should be disabled.

Link copied to clipboard
var divider: <ERROR CLASS>

Determines if the option should be rendered as divider.

Link copied to clipboard
var icon: <ERROR CLASS>

The icon before the label of the option.

Link copied to clipboard
var label: <ERROR CLASS>

The label of the option.

Link copied to clipboard
var selected: <ERROR CLASS>

Determines if the option is selected.

Link copied to clipboard
var subtext: <ERROR CLASS>

The subtext after the label of the option.

Link copied to clipboard
var value: <ERROR CLASS>

The value of the option.