diff options
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"] |