Tom Select Remote
constructor(serviceManager: <Error class: unknown class><T>, function: suspend T.(String?, String?, String?) -> List<<Error class: unknown class>>, stateFunction: () -> String? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, maxOptions: Int? = null, tsOptions: TomSelectOptions? = null, tsCallbacks: TomSelectCallbacks? = null, tsRenders: TomSelectRenders? = null, preload: Boolean = false, openOnFocus: Boolean = false, requestFilter: suspend <Error class: unknown class>.() -> Unit? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: TomSelectRemote<T>.() -> Unit? = null)
Parameters
value
selected value
service Manager
fullstack service manager
function
fullstack service method returning the list of options
state Function
a function to generate the state object passed with the remote request
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
preload
preload all options from remote data source
open On Focus
open dropdown on input focus
request Filter
a request filtering function
name
the name attribute of the generated HTML input element
label
label text bound to the input element
rich
determines if label can contain HTML code
init
an initializer extension function