Typeahead Input
open class 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: unknown class> = InputType.TEXT, value: String? = null, className: String? = null, init: TypeaheadInput.() -> Unit? = null)
Deprecated
Use TomTypeaheadInput instead from the kvision-tom-select module. The library that this component is based on is no longer maintained and this module will be removed in KVision 6.
The basic component for typeahead control.
Parameters
options
a static list of options
ta Ajax Options
AJAX options for remote data source
source
source function for data source
items
the max number of items to display in the dropdown
min Length
the minimum character length needed before triggering dropdown
delay
a delay between lookups
type
text input type (default "text")
value
text input value
class Name
CSS class names
init
an initializer extension function
Constructors
Link copied to clipboard
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: unknown class> = InputType.TEXT, value: String? = null, className: String? = null, init: TypeaheadInput.() -> Unit? = null)