aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2017-09-25 09:49:27 +0200
committerRobert Jaros <rjaros@finn.pl>2017-09-25 09:49:27 +0200
commit726a42ad5643840f84c289c9a6b56d6c3c9067b4 (patch)
tree61651f82b57adeb635712dca804264584d8371f1 /src/main/kotlin/pl/treksoft/kvision/Showcase.kt
parente212e923e18b80d503f53271d6ba534e17b31e23 (diff)
downloadkvision-726a42ad5643840f84c289c9a6b56d6c3c9067b4.tar.gz
kvision-726a42ad5643840f84c289c9a6b56d6c3c9067b4.tar.bz2
kvision-726a42ad5643840f84c289c9a6b56d6c3c9067b4.zip
Support for SplitPanel drag and dragEnd events
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/Showcase.kt')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/Showcase.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
index 25bacd6b..9ac623a8 100644
--- a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
@@ -83,6 +83,13 @@ class Showcase : ApplicationBase() {
"Proin porttitor diam id massa eleifend aliquet. Morbi nec erat porttitor, placerat lorem et, dignissim lectus. Cras ultricies posuere arcu, et pharetra dui laoreet in. Sed nec ipsum in sapien vestibulum maximus eu id nunc. Ut finibus aliquam nisi id vehicula. Phasellus sodales lobortis orci, non interdum risus dignissim quis. Proin bibendum consectetur diam nec mattis. Suspendisse dictum vulputate metus at tincidunt."))
split.add(split2)
root.add(split)
+ split.setEventListener<SplitPanel> {
+ dragSplitPanel = { e ->
+ if ((e.detail.asDynamic()).newWidth > 400) {
+ e.detail.preventDefault()
+ }
+ }
+ }
val p = Tag(TAG.P, "To jest prawo", align = ALIGN.RIGHT)
p.title = "Tytuł"