diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-02-18 13:19:29 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-02-18 13:19:29 +0100 |
commit | 372d60cf3b4917cefd3f6bb59f9ae5c766f14e36 (patch) | |
tree | aefae7369d4b846ebb8aba05631b2943dfee2c86 /kvision-modules | |
parent | b841f745b6fc26388ac7e50d3cceb6e7157d0015 (diff) | |
download | kvision-372d60cf3b4917cefd3f6bb59f9ae5c766f14e36.tar.gz kvision-372d60cf3b4917cefd3f6bb59f9ae5c766f14e36.tar.bz2 kvision-372d60cf3b4917cefd3f6bb59f9ae5c766f14e36.zip |
Fix tabulator options handling for initials.
Diffstat (limited to 'kvision-modules')
-rw-r--r-- | kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt index 66337568..77b09810 100644 --- a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt +++ b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt @@ -783,10 +783,10 @@ fun <T : Any> TabulatorOptions<T>.toJs( if (ajaxLoader != null) this.ajaxLoader = ajaxLoader if (ajaxLoaderLoading != null) this.ajaxLoaderLoading = i18nTranslator(ajaxLoaderLoading) if (ajaxLoaderError != null) this.ajaxLoaderError = i18nTranslator(ajaxLoaderError) - if (initialSort != null) this.initialSort = initialSort + if (initialSort != null) this.initialSort = initialSort.toTypedArray() if (sortOrderReverse != null) this.sortOrderReverse = sortOrderReverse - if (initialFilter != null) this.initialFilter = initialFilter - if (initialHeaderFilter != null) this.initialHeaderFilter = initialHeaderFilter + if (initialFilter != null) this.initialFilter = initialFilter.toTypedArray() + if (initialHeaderFilter != null) this.initialHeaderFilter = initialHeaderFilter.toTypedArray() if (pagination != null) this.pagination = pagination.mode if (paginationSize != null) this.paginationSize = paginationSize if (paginationSizeSelector != null) this.paginationSizeSelector = paginationSizeSelector |