I decided to start to make my own implementation of table maker. The
diference with sqltable or TABLE(), it use div (more flexible), accept
web2py helpers as values and is very simple to use.

Example:

http://web2pytesting.appspot.com/tablediv/

Code:

table =
SIMPLE_TABLE_DIV(fixedwidth=True,maxwidth=500,name="simplet1",number_list=True)
table.add_header([{'caption':'Header 1', 'width': 200},
                      {'caption':'Header 2', 'width': 100},
                      {'caption':'Header 3', 'width':
100},
                      ])
table.add_row(['Value 1','Value 2', 'Value 3'])
table.add_row(['Value 4','Value 5', 'Value 6'])
table.add_row(['Value 7','Value 8', 'Value 9'])

If anyone is interested in this or want to contribute, i will put in
bitbucket.

Reply via email to