From 81e59d6384b9989161f08a79287670a78be030a4 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 7 Nov 2019 13:33:51 +0100 Subject: Add reload method to Tabulator component. --- .../src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'kvision-modules/kvision-tabulator/src/main') 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 @@ -371,6 +371,13 @@ open class Tabulator( jsTabulator?.redraw(force) } + /** + * Reload table data. + */ + open fun reload() { + jsTabulator?.setData(null, null, null) + } + /** * Change the height of the table. * @param height new heigth of the table -- cgit