diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-02-09 00:02:38 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-02-09 00:02:38 +0100 |
commit | 321fadf3b8381b9d33cb6c5208d0bf6c4d7923f7 (patch) | |
tree | 1cb143c9756044d27c53302836d69980e1474450 /kvision-modules/kvision-remote/src/main/kotlin | |
parent | f8ff7ea49d2154d249c79a8c9591614793213e9e (diff) | |
download | kvision-321fadf3b8381b9d33cb6c5208d0bf6c4d7923f7.tar.gz kvision-321fadf3b8381b9d33cb6c5208d0bf6c4d7923f7.tar.bz2 kvision-321fadf3b8381b9d33cb6c5208d0bf6c4d7923f7.zip |
Simplify bindings definitions for remote components (select, typeahead)
Diffstat (limited to 'kvision-modules/kvision-remote/src/main/kotlin')
-rw-r--r-- | kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt index c257645d..aaf63153 100644 --- a/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt +++ b/kvision-modules/kvision-remote/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt @@ -129,17 +129,6 @@ actual open class KVServiceManager<T : Any> actual constructor(serviceClass: KCl } /** - * Binds a given function of the receiver as a select options source - * @param function a function of the receiver - */ - protected actual fun bindSelectRemote( - function: suspend T.(String?, String?, String?) -> List<RemoteOption> - ) { - val routeDef = "route${this::class.simpleName}${counter++}" - calls[function.toString().replace("\\s".toRegex(), "")] = Pair("/kv/$routeDef", HttpMethod.POST) - } - - /** * Binds a given function of the receiver as a tabulator component source * @param function a function of the receiver */ |