TypeaheadInput

fun TypeaheadInput(options: List<String>? = null, taAjaxOptions: TaAjaxOptions? = null, source: (String, (Array<String>) -> Unit) -> Unit? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: <ERROR CLASS> = TextInputType.TEXT, value: String? = null, className: String? = null, init: TypeaheadInput.() -> Unit? = null)

Parameters

options

a static list of options

taAjaxOptions

AJAX options for remote data source

source

source function for data source

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

className

CSS class names

init

an initializer extension function