Lack of ColVis exclude functionality in Buttons Extension
Lack of ColVis exclude functionality in Buttons Extension
yusufozturk
Posts: 9Questions: 3Answers: 0
Hello,
I was able to exclude first 2 and last 2 columns by using "aiExclude" or "exclude" in ColVis by sending index like:
exclude: [0,1,6,7]
Now I see that I should use :not() selector but could not find any way to filter multiple columns by using indexes.
How can I filter/exclude multiple columns?
Thanks.
Yusuf
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Its a jQuery selector, so you would just use a comma -
:not(.one, .two)
. Using a common class might be easier than using indexes since they don't really work with jQuery selectors (in this case).Allan
Thanks allan.
Now I use class names instead of indexes, and it's even easier.
But using
:not(.one, .two)
is giving syntax error. I think "buttons" does not accept array. I used it as:not(.classname)
Yusuf
Gah - you are correct. I've got an outstanding bug to fix that in fact... Apologies! But good to hear you've got it working now.
Allan