aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-12-20 16:19:04 +0100
committerRobert Jaros <rjaros@finn.pl>2018-12-20 16:19:04 +0100
commitf244cb90b6ca7191ba570d70195669d7ca114d77 (patch)
tree64806fc6771b7770594354c924493c23025f3fef /src/main/kotlin/pl/treksoft/kvision
parentc58e96e630dc546e66bc3ddcfd256ec30395e5cf (diff)
downloadkvision-f244cb90b6ca7191ba570d70195669d7ca114d77.tar.gz
kvision-f244cb90b6ca7191ba570d70195669d7ca114d77.tar.bz2
kvision-f244cb90b6ca7191ba570d70195669d7ca114d77.zip
New module with Select component tailored for server-side connectivity
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/core/Widget.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt b/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt
index 9f28c52c..82a3db48 100644
--- a/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/core/Widget.kt
@@ -283,6 +283,18 @@ open class Widget(classes: Set<String> = setOf()) : StyledComponent() {
}
}
}
+ if (internalHandlers.shownBsSelect != null) {
+ if (handlers.shownBsSelect == null) {
+ handlers.shownBsSelect = internalHandlers.shownBsSelect
+ } else {
+ val intc = internalHandlers.shownBsSelect
+ val c = handlers.shownBsSelect
+ handlers.shownBsSelect = { e ->
+ intc?.invoke(e)
+ c?.invoke(e)
+ }
+ }
+ }
handlers
} else {
null