diff options
author | Robert Jaros <rjaros@finn.pl> | 2017-09-03 02:40:21 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2017-09-03 02:40:21 +0200 |
commit | c056275c522db3f2f391ce44a405da0cedae60ca (patch) | |
tree | 2fe29b341182223b20bc50fd0909e94f6e7641ef /src/main/kotlin/pl/treksoft/kvision/Showcase.kt | |
parent | 64e2bca354a1eb6018086427365336c3acb75cb8 (diff) | |
download | kvision-c056275c522db3f2f391ce44a405da0cedae60ca.tar.gz kvision-c056275c522db3f2f391ce44a405da0cedae60ca.tar.bz2 kvision-c056275c522db3f2f391ce44a405da0cedae60ca.zip |
Link widget
Tag, List, DropDown widget refactoring
Unit tests
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/Showcase.kt')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/Showcase.kt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt index 2a376f17..019b6681 100644 --- a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt +++ b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt @@ -25,9 +25,16 @@ class Showcase : ApplicationBase() { label.hide() label.show() - val dd = DropDown("Dropdown", listOf("DAsdasd asdasdas das", "dasdasd asdasdas das"), "flag") + val link = Link("test", "http://www.google.pl") + link.add(Tag(TAG.P, "Cośtam")) + root.add(link) + + val dd = DropDown("Dropdown", listOf("abc" to "#!/x", "def" to "#!/y"), "flag") root.add(dd) + val dd2 = DropDown("Dropdown2", listOf("abc" to "#!/abc", "def" to "#!/def"), "flag") + root.add(dd2) + val p = Tag(TAG.P, "To jest prawo", align = ALIGN.RIGHT) p.title = "Tytuł" root.add(p) @@ -37,6 +44,12 @@ class Showcase : ApplicationBase() { val list = ListTag(LIST.DL_HORIZ, listOf("abc", "de<b>fdasdasdasddasd</b>tdasdas", "Dasdsada", "dasdasdads"), true) root.add(list) + val list2 = ListTag(LIST.OL, null) + list2.add(Tag(TAG.H4, "ABC")) + list2.add(Button("To jest button")) + list2.add(Image(Img("kotlin.png"))) + root.add(list2) + val img = Image(Img("kotlin.png"), "Image", true, IMAGE_SHAPE.ROUNDED) root.add(img) |