Package io.kvision.form.text

Types

DataType
Link copied to clipboard
enum DataType : Enum<DataType>
Data type for the AJAX call.
HttpType
Link copied to clipboard
enum HttpType : Enum<HttpType>
HTTP protocol type for the AJAX call.
ShowHintOnFocus
Link copied to clipboard
enum ShowHintOnFocus : Enum<ShowHintOnFocus>
TaAjaxOptions
Link copied to clipboard
data class TaAjaxOptions(url: String?, preprocessQuery: (String) -> dynamic?, preprocessData: (dynamic) -> Array<String>?, beforeSend: (JQueryXHR, JQueryAjaxSettings) -> dynamic?, httpType: HttpType, dataType: DataType, processData: Boolean)
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: TextInputType, value: String?, name: String?, label: String?, rich: Boolean, init: Typeahead.() -> Unit?) : AbstractText
Form field typeahead component.
TypeaheadInput
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: TextInputType, value: String?, classes: Set<String>, init: TypeaheadInput.() -> Unit?) : TextInput
The basic component for typeahead control.

Functions

typeahead
Link copied to clipboard
fun Container.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: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: Typeahead.() -> Unit? = null): Typeahead
DSL builder extension function.
fun <S> Container.typeahead(state: ObservableState<S>, options: List<String>? = null, taAjaxOptions: TaAjaxOptions? = null, source: (String, (Array<String>) -> Unit) -> Unit? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: Typeahead.(S) -> Unit): Typeahead
DSL builder extension function for observable state.
typeaheadInput
Link copied to clipboard
fun Container.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: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String>? = null, className: String? = null, init: TypeaheadInput.() -> Unit? = null): TypeaheadInput
DSL builder extension function.
fun <S> Container.typeaheadInput(state: ObservableState<S>, options: List<String>? = null, taAjaxOptions: TaAjaxOptions? = null, source: (String, (Array<String>) -> Unit) -> Unit? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String>? = null, className: String? = null, init: TypeaheadInput.(S) -> Unit): TypeaheadInput
DSL builder extension function for observable state.