From 8d4f2f3a01b343e4e1d039aa78dbbcaa9f7dbb48 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 22 Apr 2019 19:06:16 +0200 Subject: Fix for modifying table content dynamically. --- src/main/kotlin/pl/treksoft/kvision/table/Table.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/kotlin/pl/treksoft') 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) -- cgit