diff options
author | Robert Jaros <rjaros@finn.pl> | 2017-09-24 05:42:20 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2017-09-24 05:42:20 +0200 |
commit | 176215818b2572eefc1df18401ddaa896ea8a1fb (patch) | |
tree | a16b910d83760b6472e48dcefd8c8490b883c360 /src/main/kotlin/pl/treksoft/kvision/dropdown | |
parent | 659b87f5c1c297c68b125f67bc0b29b547debfd0 (diff) | |
download | kvision-176215818b2572eefc1df18401ddaa896ea8a1fb.tar.gz kvision-176215818b2572eefc1df18401ddaa896ea8a1fb.tar.bz2 kvision-176215818b2572eefc1df18401ddaa896ea8a1fb.zip |
New containers: StackPanel, SplitPanel, Tabs
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/dropdown')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt index eb7a0b50..8cc7eaf6 100644 --- a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt +++ b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt @@ -17,7 +17,7 @@ import pl.treksoft.kvision.snabbdom.StringBoolPair import pl.treksoft.kvision.snabbdom.StringPair import pl.treksoft.kvision.snabbdom.obj -enum class DD(val POS: String) { +enum class DD(val type: String) { HEADER("DD#HEADER"), DISABLED("DD#DISABLED"), SEPARATOR("DD#SEPARATOR") @@ -111,13 +111,13 @@ open class DropDown(text: String, elements: List<StringPair>? = null, icon: Stri if (elems != null) { val c = elems.map { when (it.second) { - DD.HEADER.POS -> Tag(TAG.LI, it.first, classes = setOf("dropdown-header")) - DD.SEPARATOR.POS -> { + DD.HEADER.type -> Tag(TAG.LI, it.first, classes = setOf("dropdown-header")) + DD.SEPARATOR.type -> { val tag = Tag(TAG.LI, it.first, classes = setOf("divider")) tag.role = "separator" tag } - DD.DISABLED.POS -> { + DD.DISABLED.type -> { val tag = Tag(TAG.LI, classes = setOf("disabled")) tag.add(Link(it.first, "#")) tag |