aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-server-jooby/src/main/kotlin/pl
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-12-19 12:14:03 +0100
committerRobert Jaros <rjaros@finn.pl>2018-12-19 12:14:03 +0100
commit474195d3aa862686712cfe6c800dc43f8fee8ec5 (patch)
tree2c89307d8740b3efa7648061dbeb57a822c40e6d /kvision-modules/kvision-server-jooby/src/main/kotlin/pl
parent161264957dc1b41cd6716ee7777139c5e29589f5 (diff)
downloadkvision-474195d3aa862686712cfe6c800dc43f8fee8ec5.tar.gz
kvision-474195d3aa862686712cfe6c800dc43f8fee8ec5.tar.bz2
kvision-474195d3aa862686712cfe6c800dc43f8fee8ec5.zip
An addon remote module for select component.
Diffstat (limited to 'kvision-modules/kvision-server-jooby/src/main/kotlin/pl')
-rw-r--r--kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/SpringServiceManager.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/SpringServiceManager.kt b/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/SpringServiceManager.kt
index 5b566423..dae150ba 100644
--- a/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/SpringServiceManager.kt
+++ b/kvision-modules/kvision-server-jooby/src/main/kotlin/pl/treksoft/kvision/remote/SpringServiceManager.kt
@@ -113,4 +113,14 @@ actual open class SpringServiceManager<T : Any> actual constructor(val serviceCl
throw IllegalStateException("This class is for Spring Boot integration.")
}
+ /**
+ * Binds a given function of the receiver as a select options source
+ * @param function a function of the receiver
+ */
+ protected actual fun bind(
+ function: T.(String) -> List<RemoteSelectOption>
+ ) {
+ throw IllegalStateException("This class is for Spring Boot integration.")
+ }
+
}