Responsive Plugin - always hidden columns
Responsive Plugin - always hidden columns
Hi! I'm using the responsive plugin, and with a table that has columns A,B, and C, I would like column C to always be collapsed/hidden, regardless of the browser size. Is this possible? Also, I'm using a JS array for my data, rather than a pre-existing HTML table, in case that makes a difference.
Apologies for what has to be a pretty trivial question, but I couldn't seem to find the answer in the documentation or in other posts on the forum. Also - huge thanks for all of the work that's gone into Datatables - incredible tool with incredible documentation. Thanks!
This question has an accepted answers - jump to answer
Answers
When you initialize your table, you can use 'none' in the classname for the column you want to always be collasped/hidden. Take a look at the notes for 'none' at https://datatables.net/extensions/responsive/classes
For example...
Ah wonderful, that did it. Thanks so much!