From 3f2925996743bb3dba8464f863efe124aba85a51 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 20 May 2020 22:38:08 +0200 Subject: Support for request configuration when using remote interfaces. --- .../src/main/kotlin/pl/treksoft/kvision/form/select/AjaxOptions.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kvision-modules/kvision-bootstrap-select') diff --git a/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/AjaxOptions.kt b/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/AjaxOptions.kt index cfda10e2..9b549cba 100644 --- a/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/AjaxOptions.kt +++ b/kvision-modules/kvision-bootstrap-select/src/main/kotlin/pl/treksoft/kvision/form/select/AjaxOptions.kt @@ -21,6 +21,7 @@ */ package pl.treksoft.kvision.form.select +import pl.treksoft.jquery.JQueryAjaxSettings import pl.treksoft.jquery.JQueryXHR import pl.treksoft.kvision.KVManagerSelect.AJAX_REQUEST_DELAY import pl.treksoft.kvision.KVManagerSelect.KVNULL @@ -85,7 +86,7 @@ enum class DataType(internal val type: String) { data class AjaxOptions( val url: String? = null, val preprocessData: ((dynamic) -> dynamic)? = null, - val beforeSend: ((JQueryXHR, dynamic) -> dynamic)? = null, + val beforeSend: ((JQueryXHR, JQueryAjaxSettings) -> dynamic)? = null, val data: dynamic = null, val httpType: HttpType = HttpType.GET, val dataType: DataType = DataType.JSON, -- cgit