Tom Typeahead Remote
open class TomTypeaheadRemote<out T : Any>(serviceManager: <Error class: unknown class><T>, function: suspend T.(String?, String?) -> List<String>, stateFunction: () -> String? = null, type: <Error class: unknown class> = InputType.TEXT, value: String? = null, tsCallbacks: <Error class: unknown class>? = null, requestFilter: suspend <Error class: unknown class>.() -> Unit? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: TomTypeaheadRemote<T>.() -> Unit? = null)
The form field component for TomTypeaheadRemote control.
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
Constructors
Link copied to clipboard
constructor(serviceManager: <Error class: unknown class><T>, function: suspend T.(String?, String?) -> List<String>, stateFunction: () -> String? = null, type: <Error class: unknown class> = InputType.TEXT, value: String? = null, tsCallbacks: <Error class: unknown class>? = null, requestFilter: suspend <Error class: unknown class>.() -> Unit? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: TomTypeaheadRemote<T>.() -> Unit? = null)