Responsive tables in Drupal 8!
If you browse on a drupal website with your smartphone you will realize that there are many problems. One point is that all the administrative tables are displayed with the same width as on the desktop so you end up with a really hard to use interface.
This was identified by many people so they worked together and solved it, see http://drupal.org/node/1276908
The result is amazing, especially if you compare the d7 and the d8 version. One version is impossible to use, the other looks pretty amazing, as it would have been build for mobile.
Let's talk a bit about the idea behind that. You can define each table column to have different priority:
- None/High - This column should appear all the time
- Low - This column should dissapear pretty early as it is just helpful information.
For bartik the criteria is a width below 720px
- Medium - This column should dissappear pretty late. For bartik the criteria is a width below 450px
All you need to do is to use RESPONSIVE_PRIORITY_MEDIUM or RESPONSIVE_PRIORITY_LOW in the header of your theme('table')
usage. For a concret example have a look at the change note: http://drupal.org/node/1796238 . That's it, pretty cool.
Feel free to comment and thank the developers for this incredible cool feature.