colvis, set a maximum

colvis, set a maximum

Nico1904Nico1904 Posts: 7Questions: 3Answers: 0

Hi everybody,
I'm working with datatable colvis and I have some trouble with this button.

What I would like to do :
Allow user to set visibility of a limited number of column inside a larger set.

For example:
the table have 8 columns and only column 1 to 4 are visible
User can click on a button in order to set visibility of columns
but if he set 5 columns visible, then he can't set another one visible, because 5 is a maximum (the limit I want to add)

Is it possible ? And if it's possible, can we change color of columns buttons in order to show that they are disabled ?

Thank you,
Sorry for my english.

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.