how to exclude specific columns in column visibility button?

how to exclude specific columns in column visibility button?

kittu.rajanalakittu.rajanala Posts: 4Questions: 1Answers: 0

I have written like this { extend: 'colvis',
text: 'Column Visibility',
columns: ':not(:first-child)',
}
but it will hide the only first column

please advise me how to do this

Replies

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin

    but it will hide the only first column

    Which is exactly what you've told it to do: :not(:first-child).

    You would modify that selector to match what you need.

    Allan

This discussion has been closed.