diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-02-26 13:30:23 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-02-26 13:30:23 +0100 |
commit | 99dcb8e434d7e0ccf5dada379c1b03e894e6aa82 (patch) | |
tree | 25e6a9d47fdbddfc2af2d97eae35e1dba8d44490 /kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision | |
parent | 9a8525f2e5cb50071c076032fdcef5a48060108e (diff) | |
download | kvision-99dcb8e434d7e0ccf5dada379c1b03e894e6aa82.tar.gz kvision-99dcb8e434d7e0ccf5dada379c1b03e894e6aa82.tar.bz2 kvision-99dcb8e434d7e0ccf5dada379c1b03e894e6aa82.zip |
Major changes in the event handling architecture. Support for multiple event handlers.
Diffstat (limited to 'kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision')
-rw-r--r-- | kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt b/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt index 3fa6cd36..a7f8992a 100644 --- a/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt +++ b/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt @@ -28,6 +28,7 @@ import pl.treksoft.kvision.core.CssSize import pl.treksoft.kvision.core.ResString import pl.treksoft.kvision.core.StringBoolPair import pl.treksoft.kvision.core.StringPair +import pl.treksoft.kvision.core.onEvent import pl.treksoft.kvision.html.Button import pl.treksoft.kvision.html.ButtonStyle import pl.treksoft.kvision.html.ButtonType @@ -355,7 +356,7 @@ internal class DropDownButton( init { this.id = id if (!forNavbar && !forDropDown) this.role = "button" - setInternalEventListener<DropDownButton> { + onEvent { click = { e -> if (parent?.parent is ContextMenu) { e.asDynamic().dropDownCM = true |