Tom Typeahead Remote
constructor(serviceManager: <Error class: unknown class><T>, function: suspend T.(String?, String?) -> List<String>, stateFunction: () -> String? = null, type: InputType = InputType.TEXT, value: String? = null, tsCallbacks: TomSelectCallbacks? = null, requestFilter: suspend <Error class: unknown class>.() -> Unit? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: TomTypeaheadRemote<T>.() -> Unit? = null)
Parameters
value
text input 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
type
text input type (default "text")
ts Callbacks
Tom Select callbacks
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