Option

data class Option<T>(val data: T, val label: String = data.toString(), var hint: String? = null, val keyOptions: Map<String, KeyOption>? = null, val disabled: String? = null, val onHover: suspend SelectOption<out T>.() -> Unit? = null) : SelectOption<T>

Select Option class

Constructors

Link copied to clipboard
constructor(data: T, label: String = data.toString(), hint: String? = null, keyOptions: Map<String, KeyOption>? = null, disabled: String? = null, onHover: suspend SelectOption<out T>.() -> Unit? = null)

Properties

Link copied to clipboard
open override val data: T

The data value of this option

Link copied to clipboard
open override val disabled: String?

Whether this option is disabled

Link copied to clipboard
open override var hint: String?

A hint message shown when selected

Link copied to clipboard
open override val keyOptions: Map<String, KeyOption>?

Key options when selected

Link copied to clipboard
open override val label: String

The display label of this option

Link copied to clipboard
open override val onHover: suspend SelectOption<out T>.() -> Unit?

Event triggered when selected

Functions

Link copied to clipboard
operator fun <T> SelectOption<T>.component1(): String
Link copied to clipboard
operator fun <T> SelectOption<T>.component2(): String?
Link copied to clipboard
operator fun <T> SelectOption<T>.component3(): String?