show/hide column in Data table
show/hide column in Data table
I use the show/hide column in this link:
https://datatables.net/examples/api/show_hide.html
I wonder how instead of showing all the column, show 5 column and the hide/show the rest of columns?
This discussion has been closed.
Answers
You'd use the
columns()selector to select only the columns you want to manipulate. In the example it only needs a single column so it usescolumn()to select the column with a single index.Allan