diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-01-16 15:53:33 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-01-16 15:53:33 +0100 |
commit | 0ecae6728903740c4407fd4bb9ebab806c631f2f (patch) | |
tree | cb819fab1a7d5046ec54801706c534e0179caad0 /src/main/kotlin/pl/treksoft/kvision/Showcase.kt | |
parent | 2c4fe2ef6fd0a0bfa53f6496a1d4bede8fe9219d (diff) | |
download | kvision-0ecae6728903740c4407fd4bb9ebab806c631f2f.tar.gz kvision-0ecae6728903740c4407fd4bb9ebab806c631f2f.tar.bz2 kvision-0ecae6728903740c4407fd4bb9ebab806c631f2f.zip |
Radio button group form control
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/Showcase.kt')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/Showcase.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt index dfdc5b6b..d7b76862 100644 --- a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt +++ b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt @@ -462,7 +462,13 @@ class Showcase : ApplicationBase() { }, required = true) add("spinner", Spinner(label = "Spinner"), required = true) add("radiogroup", RadioGroup(listOf("o1" to "Pierwsza opcja", "o2" to "Druga opcja"), - inline = true, label = "Radio group"), required = true) + inline = true, label = "Radio group").apply { + setEventListener<RadioGroup> { + change = { e -> + println(self.value) + } + } + }, required = true) validator = { val result = it["text"] == it["textarea"] |