aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/dropdown
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2017-09-24 05:42:20 +0200
committerRobert Jaros <rjaros@finn.pl>2017-09-24 05:42:20 +0200
commit176215818b2572eefc1df18401ddaa896ea8a1fb (patch)
treea16b910d83760b6472e48dcefd8c8490b883c360 /src/main/kotlin/pl/treksoft/kvision/dropdown
parent659b87f5c1c297c68b125f67bc0b29b547debfd0 (diff)
downloadkvision-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.kt8
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