TomTypeahead

open class TomTypeahead(options: List<String>? = null, type: <Error class: unknown class> = InputType.TEXT, value: String? = null, tsCallbacks: TomSelectCallbacks? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: TomTypeahead.() -> Unit? = null)

Form field typeahead component based on Tom Select.

Parameters

options

a static list of options

type

text input type (default "text")

value

text input value

tsCallbacks

Tom Select callbacks

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(options: List<String>? = null, type: <Error class: unknown class> = InputType.TEXT, value: String? = null, tsCallbacks: TomSelectCallbacks? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: TomTypeahead.() -> 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 options: <Error class: unknown class>

A static list of options for a typeahead control

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.