diff options
Diffstat (limited to 'kvision-modules/kvision-common-remote/src')
-rw-r--r-- | kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/SpringServiceManager.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/SpringServiceManager.kt b/kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/SpringServiceManager.kt index 90926656..bc45d72b 100644 --- a/kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/SpringServiceManager.kt +++ b/kvision-modules/kvision-common-remote/src/main/kotlin/pl/treksoft/kvision/remote/SpringServiceManager.kt @@ -99,4 +99,12 @@ expect open class SpringServiceManager<T : Any>(serviceClass: KClass<T>) : Servi route: String? = null, method: RpcHttpMethod = RpcHttpMethod.POST ) + + /** + * Binds a given function of the receiver as a select options source + * @param function a function of the receiver + */ + protected fun bind( + function: T.(String) -> List<RemoteSelectOption> + ) } |