how i can decrease number of columns when it loaded by mobile?
how i can decrease number of columns when it loaded by mobile?
kazem.web.p
Posts: 3Questions: 2Answers: 0
i have a table that have five column and i want to to display two column when it open by mobile and the table responsive work?
when open by desktop browser show all five column
when open by mobile browser show two column?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi
You can use the responsive extension for this.
By using breakpoints you can specify which columns appear on different screen sizes.
Thanks
Tom
i have included just this css file "jquery.dataTables.css" is this enough for being responsive or is there some mote css file that i should include?
and can you give me an example with html table and script that decrease the number of columns when open by mobile ?
thanks