kvision / pl.treksoft.kvision.form.select / AjaxOptions

AjaxOptions

(js) data class AjaxOptions

Data class for AJAX options.

Constructors

(js)

<init>

AjaxOptions(url: String? = null, preprocessData: ((dynamic) -> dynamic)? = null, beforeSend: ((JQueryXHR, dynamic) -> dynamic)? = null, data: dynamic = null, httpType: HttpType = HttpType.GET, dataType: DataType = DataType.JSON, minLength: Int = 0, cache: Boolean = true, clearOnEmpty: Boolean = true, clearOnError: Boolean = true, emptyRequest: Boolean = false, requestDelay: Int = AJAX_REQUEST_DELAY, restoreOnError: Boolean = false, preserveSelected: Boolean = false, processData: Boolean = false)

Properties

(js)

beforeSend

JQuery ajax.beforeSend option

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

cache

AjaxBootstrapSelect cache option

val cache: Boolean
(js)

clearOnEmpty

AjaxBootstrapSelect clearOnEmpty option

val clearOnEmpty: Boolean
(js)

clearOnError

AjaxBootstrapSelect clearOnError option

val clearOnError: Boolean
(js)

data

JQuery ajax.data option

val data: dynamic
(js)

dataType

JQuery ajax.dataType option

val dataType: DataType
(js)

emptyRequest

AjaxBootstrapSelect emptyRequest option

val emptyRequest: Boolean
(js)

httpType

JQuery ajax.type option

val httpType: HttpType
(js)

minLength

AjaxBootstrapSelect minLength option

val minLength: Int
(js)

preprocessData

AjaxBootstrapSelect preprocessOption option

val preprocessData: ((dynamic) -> dynamic)?
(js)

preserveSelected

AjaxBootstrapSelect preserveSelected option

val preserveSelected: Boolean
(js)

processData

JQuery ajax.processData option

val processData: Boolean
(js)

requestDelay

AjaxBootstrapSelect requestDelay option

val requestDelay: Int
(js)

restoreOnError

AjaxBootstrapSelect restoreOnError

val restoreOnError: Boolean
(js)

url

the url address

val url: String?

Extension Functions

(js)

toJs

Convert AjaxOptions to JavaScript JSON object.

fun AjaxOptions.toJs(emptyOption: Boolean): dynamic