Package io.kvision.form.text

Text input components, with password, text area, rich text area and typeahead support.

Types

Link copied to clipboard
enum DataType : Enum<DataType>

Data type for the AJAX call.

Link copied to clipboard
enum HttpType : Enum<HttpType>

HTTP protocol type for the AJAX call.

Link copied to clipboard
enum ShowHintOnFocus : Enum<ShowHintOnFocus>
Link copied to clipboard
data class TaAjaxOptions(    val url: String? = null,     val preprocessQuery: (String) -> dynamic? = null,     val preprocessData: (dynamic) -> Array<String>? = null,     val beforeSend: (<Error class: unknown class>, <Error class: unknown class>) -> dynamic? = null,     val httpType: HttpType = HttpType.GET,     val dataType: DataType = DataType.JSON,     val processData: Boolean = true)

Data class for Typeahead AJAX options.

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

Form field typeahead component.

Link copied to clipboard
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)

The basic component for typeahead control.

Functions

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

DSL builder extension function.

Link copied to clipboard
fun <Error class: unknown 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): TypeaheadInput

DSL builder extension function.