data class AjaxOptions
Data class for AJAX options.
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) |
val beforeSend: ((JQueryXHR, dynamic) -> dynamic)?
JQuery ajax.beforeSend option |
|
val cache: Boolean
AjaxBootstrapSelect cache option |
|
val clearOnEmpty: Boolean
|
|
val clearOnError: Boolean
|
|
val data: dynamic
JQuery ajax.data option |
|
val dataType: DataType |
|
val emptyRequest: Boolean
|
|
val httpType: HttpType
JQuery ajax.type option |
|
val minLength: Int
|
|
val preprocessData: ((dynamic) -> dynamic)?
|
|
val preserveSelected: Boolean |
|
val processData: Boolean |
|
val requestDelay: Int
|
|
val restoreOnError: Boolean
|
|
val url: String?
the url address |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |
|
fun AjaxOptions.toJs(emptyOption: Boolean): dynamic
Convert AjaxOptions to JavaScript JSON object. |