Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/angeloc/web2py-responsive-tables

Responsive css tables for web2py
https://github.com/angeloc/web2py-responsive-tables

Last synced: 12 days ago
JSON representation

Responsive css tables for web2py

Awesome Lists containing this project

README

        

NOW INCLUDED IN RESPONSIVEKIT https://github.com/angeloc/web2py-responsivekit

====================
Responsive tables for web2py
====================

This plugin makes responsives all web2py tables such as your own custom, the ones in appadmin, generated by SQLFORM
and so on.

It's only a matter of importing the plugin package with the admin interface and extend the base
layout as explained in the book Chapter 29 http://web2py.com/books/default/chapter/29/12#Layout-plugins.

Plugin layout is based on web2py stable version one (1.99.4 at the time of writing), I'll try to keep in sync
with the mainlaine. I hope that this plugin will be taken for inclusion, meanwhile here it is!

If you want to use this plugin in you custom layout, you have to include this code:

::

It's important to include the conditional directives for IE, because IE doesn't supports this responsive tables design,
so it's disabled.

Plugin works changing table's aspect on the fly when the resolution of target device is smaller than 700 pixels,
it uses a combination of css media queries and javascript to accomplish the goal.
If you want to change the resolution you have to edit both the css and the javascript
(replacing 700 with your desired value).

Angelo