diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-12-20 16:19:04 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-12-20 16:19:04 +0100 |
commit | f244cb90b6ca7191ba570d70195669d7ca114d77 (patch) | |
tree | 64806fc6771b7770594354c924493c23025f3fef /src | |
parent | c58e96e630dc546e66bc3ddcfd256ec30395e5cf (diff) | |
download | kvision-f244cb90b6ca7191ba570d70195669d7ca114d77.tar.gz kvision-f244cb90b6ca7191ba570d70195669d7ca114d77.tar.bz2 kvision-f244cb90b6ca7191ba570d70195669d7ca114d77.zip |
New module with Select component tailored for server-side connectivity
Diffstat (limited to 'src')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/core/Widget.kt | 12 |
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 |