diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-11-07 13:33:51 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-11-07 13:33:51 +0100 |
commit | 81e59d6384b9989161f08a79287670a78be030a4 (patch) | |
tree | 67766cfe3875abe8b1878803eb046eb7de83215c | |
parent | 4bd650eff23bb3c4892b75df33597d8368c14cf3 (diff) | |
download | kvision-81e59d6384b9989161f08a79287670a78be030a4.tar.gz kvision-81e59d6384b9989161f08a79287670a78be030a4.tar.bz2 kvision-81e59d6384b9989161f08a79287670a78be030a4.zip |
Add reload method to Tabulator component.
-rw-r--r-- | kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt | 7 |
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 */ |