Package io. kvision. form. select
Contains a simple select component as well as a full-featured component with support for remote (AJAX) data source.
Types
Link copied to clipboard
data class AjaxOptions(url: String?, preprocessData: (dynamic) -> dynamic?, beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> dynamic?, data: dynamic, httpType: HttpType, dataType: DataType, minLength: Int, cache: Boolean, clearOnEmpty: Boolean, clearOnError: Boolean, emptyRequest: Boolean, requestDelay: Int, restoreOnError: Boolean, preserveSelected: Boolean, processData: Boolean)
Content copied to clipboard
Data class for AJAX options.
Link copied to clipboard
Select dropdown align. See Bootstrap Select width.
Link copied to clipboard
open class SelectInput(options: List<<ERROR CLASS>>?, value: String?, multiple: Boolean, ajaxOptions: AjaxOptions?, className: String?, init: SelectInput.() -> Unit?)
Content copied to clipboard
The basic component for Select control.
Link copied to clipboard
open class SelectOptGroup(label: String, options: List<<ERROR CLASS>>?, maxOptions: Int?, disabled: Boolean, className: String?, init: SelectOptGroup.() -> Unit?)
Content copied to clipboard
The helper container for adding option groups to Select.
Link copied to clipboard
open class SelectOption(value: String?, label: String?, subtext: String?, icon: String?, divider: Boolean, disabled: Boolean, selected: Boolean, className: String?, init: SelectOption.() -> Unit?)
Content copied to clipboard
The helper component for adding options to Select or SelectOptGroup.
Link copied to clipboard
Select width types. See Bootstrap Select width.
Functions
Link copied to clipboard
fun <ERROR CLASS>.select(options: List<<ERROR CLASS>>? = null, value: String? = null, name: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, label: String? = null, rich: Boolean = false, init: Select.() -> Unit? = null): Select
Content copied to clipboard
DSL builder extension function.
Link copied to clipboard
fun <ERROR CLASS>.selectInput(options: List<<ERROR CLASS>>? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, className: String? = null, init: SelectInput.() -> Unit? = null): SelectInput
Content copied to clipboard
DSL builder extension function.
Link copied to clipboard
fun Select.selectOptGroup(label: String, options: List<<ERROR CLASS>>? = null, maxOptions: Int? = null, disabled: Boolean = false, className: String? = null, init: SelectOptGroup.() -> Unit? = null): SelectOptGroup
Content copied to clipboard
fun SelectInput.selectOptGroup(label: String, options: List<<ERROR CLASS>>? = null, maxOptions: Int? = null, disabled: Boolean = false, className: String? = null, init: SelectOptGroup.() -> Unit? = null): SelectOptGroup
Content copied to clipboard
DSL builder extension function.
Link copied to clipboard
fun Select.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
Content copied to clipboard
fun SelectInput.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
Content 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
Content copied to clipboard
DSL builder extension function.
Link copied to clipboard
Convert AjaxOptions to JavaScript JSON object.