We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40899d4 commit 3f1b4aeCopy full SHA for 3f1b4ae
src/VdtnetTable.vue
@@ -426,8 +426,19 @@ export default {
426
427
if (!that.hideFooter && that.columnSearch) {
428
that.options.initComplete = function () {
429
- this.api().columns().every(function () {
+ let api = this.api();
430
+ let state = api.state.loaded();
431
+
432
+ api.columns().every(function () {
433
const that = this;
434
+ const colIdx = this.index();
435
436
+ if(state){
437
+ let colSearch = state.columns[colIdx].search;
438
+ if (colSearch.search){
439
+ jq('input', this.footer()).val(colSearch.search);
440
+ }
441
442
443
jq('input', this.footer()).on('keyup change clear search', function () {
444
if (that.search() !== this.value) {
0 commit comments