Lack of ColVis exclude functionality in Buttons Extension

Lack of ColVis exclude functionality in Buttons Extension

yusufozturkyusufozturk Posts: 9Questions: 3Answers: 0
edited May 2016 in Free community support

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

Answers

  • allanallan Posts: 61,914Questions: 1Answers: 10,149 Site admin
    Answer ✓

    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

  • yusufozturkyusufozturk Posts: 9Questions: 3Answers: 0

    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

  • allanallan Posts: 61,914Questions: 1Answers: 10,149 Site admin

    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

This discussion has been closed.