aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/table
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-04-22 19:06:16 +0200
committerRobert Jaros <rjaros@finn.pl>2019-04-22 19:06:16 +0200
commit8d4f2f3a01b343e4e1d039aa78dbbcaa9f7dbb48 (patch)
tree680f9b3f823369b228ea360915c45295d7fa4832 /src/main/kotlin/pl/treksoft/kvision/table
parent6a92d7e67326eeec6040c94983b79f288a32a386 (diff)
downloadkvision-8d4f2f3a01b343e4e1d039aa78dbbcaa9f7dbb48.tar.gz
kvision-8d4f2f3a01b343e4e1d039aa78dbbcaa9f7dbb48.tar.bz2
kvision-8d4f2f3a01b343e4e1d039aa78dbbcaa9f7dbb48.zip
Fix for modifying table content dynamically.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/table')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/table/Table.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/table/Table.kt b/src/main/kotlin/pl/treksoft/kvision/table/Table.kt
index f78d3f84..68db05d3 100644
--- a/src/main/kotlin/pl/treksoft/kvision/table/Table.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/table/Table.kt
@@ -82,6 +82,8 @@ open class Table(
private val tbody = Tag(TAG.TBODY)
init {
+ thead.parent = this
+ tbody.parent = this
refreshHeaders()
@Suppress("LeakingThis")
init?.invoke(this)