Typeahead

fun Typeahead(    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: unknown class> = InputType.TEXT,     value: String? = null,     name: String? = null,     label: String? = null,     rich: Boolean = false,     floating: Boolean = false,     init: Typeahead.() -> 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

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

floating

use floating label

init

an initializer extension function