Select Input
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.
The select control can be populated directly from options parameter or manually by adding SelectOption or SelectOptGroup components to the container.
Parameters
options
an optional list of options (value to label pairs) for the select control
value
selected value
multiple
allows multiple value selection (multiple values are comma delimited)
ajax Options
additional options for remote (AJAX) data source
class Name
CSS class names
init
an initializer extension function
Constructors
SelectInput
Link copied to clipboard
fun SelectInput(options: List<<ERROR CLASS>>? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, className: String? = null, init: SelectInput.() -> Unit? = null)
Content copied to clipboard
Types
Functions
add
Link copied to clipboard
add All
Link copied to clipboard
after Destroy
Link copied to clipboard
after Insert
Link copied to clipboard
bind All JQuery Listeners
Link copied to clipboard
build Attribute Set
Link copied to clipboard
build Class Set
Link copied to clipboard
hide Options
Link copied to clipboard
Hides dropdown with options.
remove
Link copied to clipboard
remove All
Link copied to clipboard
remove All JQuery Listeners
Link copied to clipboard
remove At
Link copied to clipboard
show Options
Link copied to clipboard
Opens dropdown with options.
toggle Options
Link copied to clipboard
Toggles visibility of dropdown with options.
Properties
ajaxOptions
Link copied to clipboard
dropdownAlign
Link copied to clipboard
emptyOption
Link copied to clipboard
liveSearch
Link copied to clipboard
maxOptions
Link copied to clipboard
placeholder
Link copied to clipboard
selectedIndex
Link copied to clipboard
selectedLabel
Link copied to clipboard
selectWidth
Link copied to clipboard
selectWidthType
Link copied to clipboard
validationStatus
Link copied to clipboard
Extensions
select Opt Group
Link 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.
select Option
Link 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
DSL builder extension function.