Reputation: 664
is it possible with YADCF to do something like:
yadcf.exGetColumnFilterVal(oTable, 'all')
So it returns an array of values of all columns where a filter is applied?
I need to check if there is any filter in any column, also if they are hidden by column visibility. exGetColumnFilterVal is doing the trick, but I would like to avoid something like:
if (yadcf.exGetColumnFilterVal(oTable, 0) != '') { }
if (yadcf.exGetColumnFilterVal(oTable, 2) != '') { }
if (yadcf.exGetColumnFilterVal(oTable, 3) != '') { }
if (yadcf.exGetColumnFilterVal(oTable, 6) != '') { }
...
Thank you
Upvotes: 0
Views: 1006
Reputation: 37061
Not possible, you can do a loop over your columns and inside it dom something like this
if (yadcf.exGetColumnFilterVal(oTable, index) !== '') { }
Upvotes: 1