aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-tabulator-remote
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-10-24 19:54:16 +0200
committerRobert Jaros <rjaros@finn.pl>2019-10-24 19:54:16 +0200
commit33215e5c31b55617edf0d95e47e9e720fe4b9dd6 (patch)
tree11e90cbfaacf37dbe1ce4fd8ce3eb28d02dd4867 /kvision-modules/kvision-tabulator-remote
parent69958b1a08f46aecd6ceda54780f362019150052 (diff)
downloadkvision-33215e5c31b55617edf0d95e47e9e720fe4b9dd6.tar.gz
kvision-33215e5c31b55617edf0d95e47e9e720fe4b9dd6.tar.bz2
kvision-33215e5c31b55617edf0d95e47e9e720fe4b9dd6.zip
Allow suspending functions for SelectRemote and TabulatorRemote components.
Diffstat (limited to 'kvision-modules/kvision-tabulator-remote')
-rw-r--r--kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt b/kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt
index d37f3ea9..33cf44b3 100644
--- a/kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt
+++ b/kvision-modules/kvision-tabulator-remote/src/main/kotlin/pl/treksoft/kvision/tabulator/TabulatorRemote.kt
@@ -49,7 +49,7 @@ import pl.treksoft.kvision.utils.JSON
@UseExperimental(ImplicitReflectionSerializer::class)
open class TabulatorRemote<T : Any, E : Any>(
serviceManager: KVServiceManager<E>,
- function: E.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?) -> RemoteData<T>,
+ function: suspend E.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?) -> RemoteData<T>,
options: TabulatorOptions<T> = TabulatorOptions(),
types: Set<TableType> = setOf(),
classes: Set<String> = setOf()
@@ -98,7 +98,7 @@ open class TabulatorRemote<T : Any, E : Any>(
*/
fun <T : Any, E : Any> Container.tabulatorRemote(
serviceManager: KVServiceManager<E>,
- function: E.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?) -> RemoteData<T>,
+ function: suspend E.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?) -> RemoteData<T>,
options: TabulatorOptions<T> = TabulatorOptions(),
types: Set<TableType> = setOf(),
classes: Set<String> = setOf(),