Is there a way to toggle the colVisGroup button?
Is there a way to toggle the colVisGroup button?
![gwiqu](https://secure.gravatar.com/avatar/6dc9b85b16ddd3433f6c924dbc0b16f3/?default=https%3A%2F%2Fvanillicon.com%2F6dc9b85b16ddd3433f6c924dbc0b16f3_200.png&rating=g&size=120)
All the examples I've seen of the ColVisGroup button shows creating two buttons, one to hide the columns and a second to reshow them. Is there a way to have a single button that toggles back and forth between hiding and showing the selected columns?
i saw that it was answered in another thread with an answer using a custom button but the link is now dead and so i ave no idea how the guy did it
Answers
i found out how to toggle a group of buttons, use 'columnVisibility' from the colvis js by extending it