Column groups toggle button?

Column groups toggle button?

PhilwnPhilwn Posts: 7Questions: 3Answers: 0

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.

Answers

  • PhilwnPhilwn Posts: 7Questions: 3Answers: 0

    Can anyone answer this?

  • allanallan Posts: 52,268Questions: 1Answers: 7,958 Site admin

    Yes, use the columnsToggle button and set its columns option to define which columns it should apply to.

    Allan

This discussion has been closed.