add datatables savestate feature

This commit is contained in:
Ariel Rin
2021-11-27 23:02:33 +10:00
parent 8b8dcc0127
commit dfe62db8ee
7 changed files with 23 additions and 4 deletions

View File

@@ -73,6 +73,8 @@
],
bootstrap: true
},
"stateSave": true,
"stateDuration": 0,
drawCallback: function ( settings ) {
let api = this.api();
let rows = api.rows( {page:'current'} ).nodes();

View File

@@ -106,8 +106,10 @@
idx: 1
}
],
bootstrap: true
bootstrap: true,
},
"stateSave": true,
"stateDuration": 0,
drawCallback: function ( settings ) {
let api = this.api();
let rows = api.rows( {page:'current'} ).nodes();