From 33215e5c31b55617edf0d95e47e9e720fe4b9dd6 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 24 Oct 2019 19:54:16 +0200 Subject: Allow suspending functions for SelectRemote and TabulatorRemote components. --- .../src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemote.kt | 4 ++-- .../main/kotlin/pl/treksoft/kvision/form/select/SelectRemoteInput.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'kvision-modules/kvision-bootstrap-select-remote/src/main') diff --git a/kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemote.kt b/kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemote.kt index 1cabb5dd..74cb3694 100644 --- a/kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemote.kt +++ b/kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemote.kt @@ -51,7 +51,7 @@ import pl.treksoft.kvision.utils.SnOn open class SelectRemote( value: String? = null, serviceManager: KVServiceManager, - function: T.(String?, String?, String?) -> List, + function: suspend T.(String?, String?, String?) -> List, stateFunction: (() -> String)? = null, name: String? = null, multiple: Boolean = false, @@ -258,7 +258,7 @@ open class SelectRemote( fun Container.selectRemote( value: String? = null, serviceManager: KVServiceManager, - function: T.(String?, String?, String?) -> List, stateFunction: (() -> String)? = null, + function: suspend T.(String?, String?, String?) -> List, stateFunction: (() -> String)? = null, name: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, label: String? = null, rich: Boolean = false, init: (SelectRemote.() -> Unit)? = null ): SelectRemote { diff --git a/kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemoteInput.kt b/kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemoteInput.kt index e44c63d5..af3f1a52 100644 --- a/kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemoteInput.kt +++ b/kvision-modules/kvision-bootstrap-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/SelectRemoteInput.kt @@ -54,7 +54,7 @@ external fun decodeURIComponent(encodedURI: String): String open class SelectRemoteInput( value: String? = null, serviceManager: KVServiceManager, - function: T.(String?, String?, String?) -> List, + function: suspend T.(String?, String?, String?) -> List, stateFunction: (() -> String)? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, @@ -127,7 +127,7 @@ open class SelectRemoteInput( fun Container.selectRemoteInput( value: String? = null, serviceManager: KVServiceManager, - function: T.(String?, String?, String?) -> List, + function: suspend T.(String?, String?, String?) -> List, stateFunction: (() -> String)? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, -- cgit