data class AjaxOptions
Data class for AJAX options.
AjaxOptions(url: String, preprocessData: (dynamic) -> dynamic, beforeSend: (JQueryXHR) -> 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) |
val beforeSend: (JQueryXHR) -> dynamic |
|
val cache: Boolean |
|
val clearOnEmpty: Boolean |
|
val clearOnError: Boolean |
|
val data: dynamic |
|
val dataType: DataType |
|
val emptyRequest: Boolean |
|
val httpType: HttpType |
|
val minLength: Int |
|
val preprocessData: (dynamic) -> dynamic |
|
val requestDelay: Int |
|
val restoreOnError: Boolean |
|
val url: String |
fun AjaxOptions.toJs(emptyOption: Boolean): dynamic
Convert AjaxOptions to JavaScript JSON object. |