HTML Grid/Table generator for Webhelpers2
Project description
HTML Grid system that helps generating HTML tables (or other structures) for data presentation, supports ordering, sorting column markers and is highly customizable.
DOCUMENTATION: http://readthedocs.org/docs/webhelpers_grid2/en/latest/
BUG TRACKER: https://github.com/ergo/webhelpers_grid2/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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
webhelpers2_grid-0.1.tar.gz
(8.3 kB
view details)
File details
Details for the file webhelpers2_grid-0.1.tar.gz
.
File metadata
- Download URL: webhelpers2_grid-0.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07f70f5117f545aa5640f13a600cfbe0ddd2a594b864028b581e7f64f0b51bbd |
|
MD5 | 8fc9ffe7159458c7e861d47130d8614b |
|
BLAKE2b-256 | cfb179b5c46f8b3d153d5579c9deafd7e853439bf1b1bdd6d02d1945124f4db9 |