Show specific columns only in Collapse responsive mode
-
Hello!
I have a table where, specifically on mobile, I’d like only the first two columns to display “uncollapsed” and the rest are collapsed. Datatables seems to always minimally want to show the first 3 columns no matter what I do or try.
Been trying to play around with something like this but can’t get it to quite work right:
"columnDefs": [ { "className": "all", "targets": [ 0, 1 ] } ]
Is there a way within this Custom Commands area I can have it say something like “on mobile, only display the first two columns”?
Thanks for any help you can provide!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.