kvision / pl.treksoft.kvision.form.text / TypeaheadRemoteInput / <init>

<init>

(js) TypeaheadRemoteInput(serviceManager: KVServiceManager<T>, function: suspend T.(String?, String?) -> List<String>, stateFunction: (() -> String)? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: TextInputType = TextInputType.TEXT, value: String? = null, taAjaxOptions: TaAjaxOptions? = null, classes: Set<String> = setOf())

Parameters

serviceManager - multiplatform service manager

function - multiplatform service method returning the list of options

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

items - the max number of items to display in the dropdown

minLength - the minimum character length needed before triggering dropdown

delay - a delay between lookups

type - text input type (default "text")

value - text input value

taAjaxOptions - AJAX options for remote data source

classes - a set of CSS class names

Constructor