Tom Select
open class TomSelect(options: List<<Error class: unknown class>>? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, maxOptions: Int? = null, tsOptions: TomSelectOptions? = null, tsCallbacks: TomSelectCallbacks? = null, tsRenders: TomSelectRenders? = null, label: String? = null, rich: Boolean = false, init: TomSelect.() -> Unit? = null)
The form field component for Tom Select control.
Parameters
options
a static list of options
value
text input value
empty Option
determines if an empty option is automatically generated
multiple
allows multiple value selection (multiple values are comma delimited)
max Options
the number of visible options
ts Options
Tom Select options
ts Callbacks
Tom Select callbacks
ts Renders
Tom Select render functions
label
label text bound to the input element
rich
determines if label can contain HTML code
init
an initializer extension function
Constructors
Link copied to clipboard
constructor(options: List<<Error class: unknown class>>? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, maxOptions: Int? = null, tsOptions: TomSelectOptions? = null, tsCallbacks: TomSelectCallbacks? = null, tsRenders: TomSelectRenders? = null, label: String? = null, rich: Boolean = false, init: TomSelect.() -> Unit? = null)
Properties
Link copied to clipboard
Disable searching in options.
Link copied to clipboard
Determines if an empty option is automatically generated.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The number of visible options.
Link copied to clipboard
The placeholder for the select control.
Link copied to clipboard
The label of the currently selected option.
Link copied to clipboard
Tom Select callbacks