Is it possible to show/hide colums based on the screen size?
Is it possible to show/hide colums based on the screen size?
ioclaudio
Posts: 13Questions: 3Answers: 0
Hi,
I've seen that some sites have tables that are "responsive", that is they show or hide columns based on the size of the screen.
For example if you squeeze the browser window, then the table hides some columns.
My questions are:
- Is it possible to do the same thing using Datatables?
- Should I use the "@media" directive of the CSS?
- Are there examples on this site? (I didn't find any of them)
For example I'd like to add this feature to this table:
https://jsfiddle.net/ioclaudio/45wde1Lu/6/
Thank you very much for your suggestions.
Claudio
This discussion has been closed.
Replies
Yep, there's a Responsive extension - it would be worth looking at the examples as out of the box it'll probably do what you want.
Colin
Thank you, it's easy with the Download builder:
https://jsfiddle.net/ioclaudio/pb5dtLgs/1/
cld
Sorry, this nis my finale example:
https://jsfiddle.net/ioclaudio/dyqcb38n/2/