Column groups toggle button?
Column groups toggle button?
I have found the Column Groups method (https://datatables.net/extensions/buttons/examples/column_visibility/columnGroups.html)
and is what we are after however is it possible to use the column groups as a toggle button rather than it shows certain columns and hides others.
For example I want it to show columns 4,5,6 and not hide any.
Then if it is clicked again it will hide 4,5,6.
This discussion has been closed.
Answers
Can anyone answer this?
Yes, use the
columnsToggle
button and set itscolumns
option to define which columns it should apply to.Allan