Set default button groups hidden

Set default button groups hidden

nigelhvnigelhv Posts: 6Questions: 1Answers: 0

I've found the Datatables buttons that can be used to control which groups of columns are visible. Is it possible to set a default? For example, to use the sample given here: https://datatables.net/extensions/buttons/examples/column_visibility/columnGroups.html would it be possible to default to "Office Info" on page load?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    Use the columns.visible option. The column visibility buttons will automatically react to that.

    Allan

  • nigelhvnigelhv Posts: 6Questions: 1Answers: 0

    Of course, thank you.

This discussion has been closed.