Adapted & updated Tabulator default options (PersistenceID now changeable / Updates for options in Tabulator 4.9)

. Adapted
.. PersistenceID now changeable
.. check: only set default option if not set in tabulator

. Updates in version 4.9:
.. persistentLayout => persistence
.. getVisibility() => isVisible()
This commit is contained in:
Cris
2023-03-29 10:29:06 +02:00
parent 772e60c944
commit 9e4489093c
2 changed files with 6 additions and 11 deletions
@@ -167,9 +167,7 @@ $filterWidgetArray = array(
'datasetRepOptions' => '{
height: func_height(this),
layout: "fitColumns", // fit columns to width of table
persistentLayout:true,
persistentSort:true,
persistentFilter:true,
persistenceID: "approveAnrechnungUebersicht_V1",
autoResize: false, // prevent auto resizing of table (false to allow adapting table size when cols are (de-)activated
headerFilterPlaceholder: " ",
index: "anrechnung_id", // assign specific column as unique id (important for row indexing)