aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/Showcase.kt')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/Showcase.kt13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
index 6275fe88..9ab1ac0e 100644
--- a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt
@@ -47,6 +47,13 @@ class Showcase : ApplicationBase() {
hiddenBsDropdown = { e -> println("hidden" + e.detail) }
}
+ val dd3 = DropDown("Dropdown3", icon = "file")
+ dd3.add(Tag(TAG.H4, "ABC"))
+ dd3.add(Button("To jest button"))
+ dd3.add(Image(Img("kotlin.png")))
+ root.add(dd3)
+
+
val p = Tag(TAG.P, "To jest prawo", align = ALIGN.RIGHT)
p.title = "Tytuł"
root.add(p)
@@ -68,7 +75,11 @@ class Showcase : ApplicationBase() {
val button = Button("To jest przycisk FA", "fa-flag", BUTTONSTYLE.DANGER)
button.setEventListener<Button> {
- click = { _ -> println(self.text) }
+ click = { _ ->
+ println(self.text)
+ dd3.text = "Zmiana"
+ dd3.style = BUTTONSTYLE.WARNING
+ }
}
root.add(button)
val button2 = Button("To jest przycisk", "flag", BUTTONSTYLE.DANGER)