SelectInput

open class SelectInput(    options: List<<Error class: unknown class>>? = null,     value: String? = null,     multiple: Boolean = false,     ajaxOptions: AjaxOptions? = null,     className: String? = null,     init: SelectInput.() -> Unit? = null)

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)

ajaxOptions

additional options for remote (AJAX) data source

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
fun SelectInput(    options: List<<Error class: unknown class>>? = null,     value: String? = null,     multiple: Boolean = false,     ajaxOptions: AjaxOptions? = null,     className: String? = null,     init: SelectInput.() -> Unit? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun add(child: <Error class: unknown class>): SelectInput
open fun add(position: Int, child: <Error class: unknown class>): SelectInput
Link copied to clipboard
open fun addAll(children: List<<Error class: unknown class>>): SelectInput
Link copied to clipboard
open fun afterDestroy()
Link copied to clipboard
open fun afterInsert(node: <Error class: unknown class>)
Link copied to clipboard
open fun bindAllJQueryListeners()
Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun getState(): String?
Link copied to clipboard
open fun hideOptions()

Hides dropdown with options.

Link copied to clipboard
open fun remove(child: <Error class: unknown class>): SelectInput
Link copied to clipboard
open fun removeAll(): SelectInput
Link copied to clipboard
open fun removeAllJQueryListeners()
Link copied to clipboard
open fun removeAt(position: Int): SelectInput
Link copied to clipboard
open fun render(): <Error class: unknown class>
Link copied to clipboard
open fun setState(state: String?)
Link copied to clipboard
open fun showOptions()

Opens dropdown with options.

Link copied to clipboard
open fun subscribe(observer: (String?) -> Unit): () -> Unit
Link copied to clipboard
open fun toggleOptions()

Toggles visibility of dropdown with options.

Properties

Link copied to clipboard
var ajaxOptions: <Error class: unknown class>

Additional options for remote (AJAX) data source.

Link copied to clipboard
var autofocus: Boolean?

Determines if the select is automatically focused.

Link copied to clipboard
open var disabled: <Error class: unknown class>

Determines if the field is disabled.

Link copied to clipboard
var dropdownAlign: <Error class: unknown class>

The dropdown align of the select control.

Link copied to clipboard
var dropdownShowAll: <Error class: unknown class>

Always show all options in the dropdown list.

Link copied to clipboard
var dropdownSize: Int?

The number of options to be show in the dropdown list.

Link copied to clipboard
var emptyOption: <Error class: unknown class>

Determines if an empty option is automatically generated.

Link copied to clipboard
var liveSearch: <Error class: unknown class>

Determines if live search is available.

Link copied to clipboard
var maxOptions: Int?

Maximal number of selected options.

Link copied to clipboard
var multiple: <Error class: unknown class>

Determines if multiple value selection is allowed.

Link copied to clipboard
open var name: String?

The name attribute of the generated HTML select element.

Link copied to clipboard
var options: <Error class: unknown class>

A list of options (value to label pairs) for the select control.

Link copied to clipboard
var placeholder: String?

The placeholder for the select control.

Link copied to clipboard
var selectedIndex: Int

The index of the currently selected option or -1 if none.

Link copied to clipboard
var selectedLabel: String?

The label of the currently selected option.

Link copied to clipboard
var selectWidth: <Error class: unknown class>?

The width of the select control.

Link copied to clipboard
var selectWidthType: SelectWidthType?

The width type of the select control.

Link copied to clipboard
open var size: <Error class: unknown class>?

The size of the input.

Link copied to clipboard
var style: <Error class: unknown class>?

The style of the select control.

Link copied to clipboard
open var validationStatus: <Error class: unknown class>?

The validation status of the input.

Link copied to clipboard
open var value: <Error class: unknown class>

A value of the selected option.

Extensions

Link copied to clipboard
fun SelectInput.selectOptGroup(    label: String,     options: List<<Error class: unknown class>>? = null,     maxOptions: Int? = null,     disabled: Boolean = false,     className: String? = null,     init: SelectOptGroup.() -> Unit? = null): SelectOptGroup

DSL builder extension function.

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

DSL builder extension function.