TomTypeaheadRemote

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

serviceManager

fullstack service manager

function

fullstack service method returning the list of options

stateFunction

a function to generate the state object passed with the remote request

type

text input type (default "text")

tsCallbacks

Tom Select callbacks

requestFilter

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)

Properties

Link copied to clipboard
var autocomplete: <Error class: unknown class>

Determines if autocomplete is enabled for the input element.

Link copied to clipboard
Link copied to clipboard
var tsCallbacks: <Error class: unknown class>

Tom Select callbacks

Link copied to clipboard
var type: <Error class: unknown class>

Text input type.