aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/html
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2017-10-07 02:19:47 +0200
committerRobert Jaros <rjaros@finn.pl>2017-10-07 02:19:47 +0200
commit381f872a4daab133ed53e85526281b6e29873007 (patch)
treeed0a39ef917ccdb43b8ed0ed9b616eaf4f2bf9bf /src/main/kotlin/pl/treksoft/kvision/html
parenta61948c5b79d2fb3402e14ee69a9a8f2a18c02b4 (diff)
downloadkvision-381f872a4daab133ed53e85526281b6e29873007.tar.gz
kvision-381f872a4daab133ed53e85526281b6e29873007.tar.bz2
kvision-381f872a4daab133ed53e85526281b6e29873007.zip
New grid component (old renamed to ResponsiveGridPanel). Flex, HPanel, VPanel and DockPanel components. Cache for components attributes.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/html')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/html/List.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/html/List.kt b/src/main/kotlin/pl/treksoft/kvision/html/List.kt
index c6298ddf..9bac3f41 100644
--- a/src/main/kotlin/pl/treksoft/kvision/html/List.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/html/List.kt
@@ -52,16 +52,16 @@ open class ListTag(type: LIST, elements: List<String>? = null, rich: Boolean = f
val res = when (type) {
LIST.UL, LIST.OL, LIST.UNSTYLED, LIST.INLINE -> childrenElements.map { v ->
if (v is Tag && v.type == TAG.LI) {
- v.render()
+ v.renderVNode()
} else {
- h("li", arrayOf(v.render()))
+ h("li", arrayOf(v.renderVNode()))
}
}
LIST.DL, LIST.DL_HORIZ -> childrenElements.mapIndexed { index, v ->
if (v is Tag && v.type == TAG.LI) {
- v.render()
+ v.renderVNode()
} else {
- h(if (index % 2 == 0) "dt" else "dd", arrayOf(v.render()))
+ h(if (index % 2 == 0) "dt" else "dd", arrayOf(v.renderVNode()))
}
}
}