Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ergo/webhelpers2_grid
Grid extension for webhelpers2
https://github.com/ergo/webhelpers2_grid
Last synced: 18 days ago
JSON representation
Grid extension for webhelpers2
- Host: GitHub
- URL: https://github.com/ergo/webhelpers2_grid
- Owner: ergo
- License: bsd-3-clause
- Created: 2014-09-14T15:10:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-10-07T14:42:27.000Z (over 6 years ago)
- Last Synced: 2024-12-16T04:16:11.323Z (24 days ago)
- Language: HTML
- Size: 92.8 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
README
# webhelpers2_grid
HTML Grid renderer that helps generating HTML tables (or other structures)
for data presentation, supports ordering, sorting columns, and is very customizable**DOCUMENTATION**: https://webhelpers2-grid.readthedocs.io
**DEMOS**: http://ergo.github.io/webhelpers2_grid/gh-pages/ (static page)
**BUG TRACKER**: https://github.com/ergo/webhelpers2_grid/issues
Example Usage::
test_data = [
{"group_name": "foo", "options": "lalala", "id":1},
{"group_name": "foo2", "options": "lalala2", "id":2},
{"group_name": "foo3", "options": "lalala3", "id":3},
{"group_name": "foo4", "options": "lalala4", "id":4},
]def options_td(col_num, i, item):
u = url("/tickets/view", ticket_id=item["id"])
a = link_to(item["options"], u)
return HTML.td(a)g = Grid(test_data, columns=["_numbered", "group_name", "options"])
g.labels["options"] = 'FOOBAAR'
g.column_formats["options"] = options_td
str(g)webhelpers2_grid is BSD Licensed