Tom Select Input
open class TomSelectInput(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, className: String? = null, init: TomSelectInput.() -> Unit? = null)
The basic component for a select control based on Tom Select.
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
class Name
CSS class names
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, className: String? = null, init: TomSelectInput.() -> 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
The number of visible options.
Link copied to clipboard
The placeholder for the input element.
Link copied to clipboard
The label of the currently selected option.
Link copied to clipboard
The native TomSelect object instance
Link copied to clipboard
Tom Select callbacks
Link copied to clipboard
The validation status of the input.