This is very much something I'm interested in doing. There was another discussion about this a little while ago, which I can't find at the moment, but basically the column visibility is easily done with fnSetColumnVis - so you just need to hook responsive.js up to call that method and set the columns that you want to be visible.
Not had time to do it yet, but I will be looking at integrating ColVis's features not TableTools after the DataTables 1.10 work, and a demo of this will form part of that work.
I think MediaTable basically marks as essential and optional, it defaults all to display:none, then sets the essential ones visible and then uses @media screen and (min-width: 768px) based on the screen to set the optional ones visible again. I think the https://github.com/thepeg/MediaTable/blob/master/jquery.mediaTable.js file then sets up the option button to show what columns can be made visible a bit like the ColVis show/hide button.
I expect to get started on v1.10 development in a month or so, and the plan is to have a beta ready by the end of the year. So I would suspect I'll have time to get on to the ColVis / TableTools integration later in Q1 2013 (based on the amount of time I've got available for DataTables development).
However, if anyone (yourself?) fancies putting together a duo, that would be very welcome indeed.
Replies
This is very much something I'm interested in doing. There was another discussion about this a little while ago, which I can't find at the moment, but basically the column visibility is easily done with fnSetColumnVis - so you just need to hook responsive.js up to call that method and set the columns that you want to be visible.
Not had time to do it yet, but I will be looking at integrating ColVis's features not TableTools after the DataTables 1.10 work, and a demo of this will form part of that work.
Regards,
Allan
I think MediaTable basically marks as essential and optional, it defaults all to display:none, then sets the essential ones visible and then uses @media screen and (min-width: 768px) based on the screen to set the optional ones visible again. I think the https://github.com/thepeg/MediaTable/blob/master/jquery.mediaTable.js file then sets up the option button to show what columns can be made visible a bit like the ColVis show/hide button.
I expect to get started on v1.10 development in a month or so, and the plan is to have a beta ready by the end of the year. So I would suspect I'll have time to get on to the ColVis / TableTools integration later in Q1 2013 (based on the amount of time I've got available for DataTables development).
However, if anyone (yourself?) fancies putting together a duo, that would be very welcome indeed.
Allan
I can write a plugin myself, is that an idea? And can I just mail it to you then?
Allan