Visibility-Toggle only for selected columns?
Visibility-Toggle only for selected columns?
Using the Button-Plugin to toggle col-viz (as in https://datatables.net/extensions/buttons/examples/column_visibility/columnsToggle ), it seems to be a general option and user will be able to toggle **any **column's visibility. Is there a way to enable visibility-toggling for selected cols only?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Yes, the
columns
option for thecolumnsToggle
button type. There is an example here (although that uses thecolvis
type).Allan
Thanks, very useful