kvision / pl.treksoft.kvision.form.text / TaAjaxOptions

TaAjaxOptions

(js) data class TaAjaxOptions

Data class for Typeahead AJAX options.

Constructors

(js)

<init>

TaAjaxOptions(url: String? = null, preprocessQuery: ((String) -> dynamic)? = null, preprocessData: ((dynamic) -> Array<String>)? = null, beforeSend: ((JQueryXHR, JQueryAjaxSettings) -> dynamic)? = null, httpType: HttpType = HttpType.GET, dataType: DataType = DataType.JSON, processData: Boolean = true)

Properties

(js)

beforeSend

JQuery ajax.beforeSend option

val beforeSend: ((JQueryXHR, JQueryAjaxSettings) -> dynamic)?
(js)

dataType

JQuery ajax.dataType option

val dataType: DataType
(js)

httpType

JQuery ajax.type option

val httpType: HttpType
(js)

preprocessData

a function to process received data

val preprocessData: ((dynamic) -> Array<String>)?
(js)

preprocessQuery

a function to process query string for sending

val preprocessQuery: ((String) -> dynamic)?
(js)

processData

JQuery ajax.processData option

val processData: Boolean
(js)

url

the url address

val url: String?