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
AjaxOptions
Link copied to clipboard
data class AjaxOptions(url: String?, preprocessData: (dynamic) -> dynamic?, beforeSend: (JQueryXHR, JQueryAjaxSettings) -> 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
Select
Link copied to clipboard
SelectDropdownAlign
Link copied to clipboard
SelectInput
Link copied to clipboard
open class SelectInput(options: List<StringPair>?, value: String?, multiple: Boolean, ajaxOptions: AjaxOptions?, className: String?, init: SelectInput.() -> Unit?) : SimplePanel, GenericFormComponent<String?> , FormInput, MutableState<String?>
Content copied to clipboard
SelectOptGroup
Link copied to clipboard
open class SelectOptGroup(label: String, options: List<StringPair>?, maxOptions: Int?, disabled: Boolean, className: String?, init: SelectOptGroup.() -> Unit?) : SimplePanel
Content copied to clipboard
The helper container for adding option groups to Select.
SelectOption
Link copied to clipboard
SelectWidthType
Link copied to clipboard
Functions
select
Link copied to clipboard
selectInput
Link copied to clipboard
fun Container.selectInput(options: List<StringPair>? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, className: String? = null, init: SelectInput.() -> Unit? = null): SelectInput
Content copied to clipboard
selectOptGroup
Link copied to clipboard
fun Select.selectOptGroup(label: String, options: List<StringPair>? = 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<StringPair>? = null, maxOptions: Int? = null, disabled: Boolean = false, className: String? = null, init: SelectOptGroup.() -> Unit? = null): SelectOptGroup
Content copied to clipboard
selectOption
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
toJs
Link copied to clipboard