aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-03-23 17:45:27 +0100
committerRobert Jaros <rjaros@finn.pl>2018-03-23 17:45:27 +0100
commitcb2f0310bf86ac78ecd8355626d15382309aa754 (patch)
tree8f660f85d9ba9bf7ad30898e5a839d22ab224eec /src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt
parent6f3c026c4d70cb9c7b3ee156e988b6320e0ceb28 (diff)
downloadkvision-cb2f0310bf86ac78ecd8355626d15382309aa754.tar.gz
kvision-cb2f0310bf86ac78ecd8355626d15382309aa754.tar.bz2
kvision-cb2f0310bf86ac78ecd8355626d15382309aa754.zip
Small fixes.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt b/src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt
index ddb3bca4..bf1cdc43 100644
--- a/src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt
@@ -5,7 +5,6 @@ package pl.treksoft.kvision.toolbar
import pl.treksoft.kvision.core.Container
import pl.treksoft.kvision.core.StringBoolPair
-import pl.treksoft.kvision.core.StringPair
import pl.treksoft.kvision.panel.SimplePanel
/**
@@ -49,6 +48,7 @@ open class ButtonGroup(
var style by refreshOnUpdate(style)
init {
+ role = "group"
@Suppress("LeakingThis")
init?.invoke(this)
}
@@ -67,10 +67,6 @@ open class ButtonGroup(
return cl
}
- override fun getSnAttrs(): List<StringPair> {
- return super.getSnAttrs() + ("role" to "group")
- }
-
companion object {
/**
* DSL builder extension function.