MediaTable – a jQuery plug-in for responsive tables

MediaTable – a jQuery plug-in for responsive tables

jchannonjchannon Posts: 26Questions: 0Answers: 0
edited September 2012 in General
Wondered if anyone had seen this and integrated DataTables. If so let us know where we can see it.

http://blogs.msdn.com/b/ukmsdn/archive/2012/09/05/top-tip-mediatable-a-jquery-plug-in-for-responsive-tables.aspx

Replies

  • jchannonjchannon Posts: 26Questions: 0Answers: 0
    Here's a demo of the plugin not using DataTables http://consulenza-web.com/jquery/MediaTable/
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Hi,

    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
  • jchannonjchannon Posts: 26Questions: 0Answers: 0
    edited September 2012
    Any ideas on a rough timeframe?

    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.
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    > Any ideas on a rough timeframe?

    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
  • alexjalexj Posts: 7Questions: 0Answers: 0
    I am working with Twitter bootstrap right now and a simple plugin for responsive tables would come in handy.

    I can write a plugin myself, is that an idea? And can I just mail it to you then?
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Sounds great! Perhaps if you post it on GitHub then others could benefit from it as well, and perhaps also contribute towards the development.

    Allan
This discussion has been closed.