Package io. kvision. form. text
Text input components, with password, text area, rich text area and typeahead support.
Types
Show Hint On Focus
Link copied to clipboard
Ta Ajax Options
Link copied to clipboard
data class TaAjaxOptions(url: String?, preprocessQuery: (String) -> dynamic?, preprocessData: (dynamic) -> Array<String>?, beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> dynamic?, httpType: HttpType, dataType: DataType, processData: Boolean)
Content copied to clipboard
Data class for Typeahead AJAX options.
Typeahead
Link copied to clipboard
open class Typeahead(options: List<String>?, taAjaxOptions: TaAjaxOptions?, source: (String, (Array<String>) -> Unit) -> Unit?, items: Int?, minLength: Int, delay: Int, type: <ERROR CLASS>, value: String?, name: String?, label: String?, rich: Boolean, floating: Boolean, init: Typeahead.() -> Unit?)
Content copied to clipboard
Form field typeahead component.
Typeahead Input
Link copied to clipboard
open class TypeaheadInput(options: List<String>?, taAjaxOptions: TaAjaxOptions?, source: (String, (Array<String>) -> Unit) -> Unit?, items: Int?, minLength: Int, delay: Int, type: <ERROR CLASS>, value: String?, className: String?, init: TypeaheadInput.() -> Unit?)
Content copied to clipboard
The basic component for typeahead control.
Functions
typeahead
Link copied to clipboard
fun <ERROR CLASS>.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> = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, floating: Boolean = false, init: Typeahead.() -> Unit? = null): Typeahead
Content copied to clipboard
DSL builder extension function.
typeahead Input
Link copied to clipboard
fun <ERROR 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> = TextInputType.TEXT, value: String? = null, className: String? = null, init: TypeaheadInput.() -> Unit? = null): TypeaheadInput
Content copied to clipboard
DSL builder extension function.