aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-tabulator/src
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-11-07 13:33:51 +0100
committerRobert Jaros <rjaros@finn.pl>2019-11-07 13:33:51 +0100
commit81e59d6384b9989161f08a79287670a78be030a4 (patch)
tree67766cfe3875abe8b1878803eb046eb7de83215c /kvision-modules/kvision-tabulator/src
parent4bd650eff23bb3c4892b75df33597d8368c14cf3 (diff)
downloadkvision-81e59d6384b9989161f08a79287670a78be030a4.tar.gz
kvision-81e59d6384b9989161f08a79287670a78be030a4.tar.bz2
kvision-81e59d6384b9989161f08a79287670a78be030a4.zip
Add reload method to Tabulator component.
Diffstat (limited to 'kvision-modules/kvision-tabulator/src')
-rw-r--r--kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt
index 0f5b48ae..34054545 100644
--- a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt
+++ b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt
@@ -372,6 +372,13 @@ open class Tabulator<T : Any>(
}
/**
+ * Reload table data.
+ */
+ open fun reload() {
+ jsTabulator?.setData(null, null, null)
+ }
+
+ /**
* Change the height of the table.
* @param height new heigth of the table
*/