simple table div

40 views
Skip to first unread message

Martin.Mulone

unread,
Nov 10, 2010, 5:08:10 PM11/10/10
to web2py-users
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.

Martín Mulone

unread,
Nov 10, 2010, 5:09:24 PM11/10/10
to web2py-users
this is the model

2010/11/10 Martin.Mulone <mulone...@gmail.com>



--
My blog: http://martin.tecnodoc.com.ar
My portfolio *spanish*: http://www.tecnodoc.com.ar
Checkout my last proyect instant-press: http://www.instant2press.com



simpletable.py

rochacbruno

unread,
Nov 10, 2010, 5:36:11 PM11/10/10
to web...@googlegroups.com
Nice! I want to use it.

I am thinking in a way to create a inline editable table.

Enviado via iPhone

Martín Mulone

unread,
Nov 11, 2010, 7:16:21 AM11/11/10
to web...@googlegroups.com

Bruno Rocha

unread,
Nov 11, 2010, 7:30:49 AM11/11/10
to web...@googlegroups.com
The whole implementation is in "simpletable.py"  or it depend on another changes?

I think it is a good idea to post the simpletable in web2pyslices.com

2010/11/11 Martín Mulone <mulone...@gmail.com>

Martín Mulone

unread,
Nov 11, 2010, 7:38:40 AM11/11/10
to web...@googlegroups.com
yes, all is in simpletable.py 

2010/11/11 Bruno Rocha <rocha...@gmail.com>

Bruno Rocha

unread,
Nov 11, 2010, 1:53:41 PM11/11/10
to web...@googlegroups.com
Martin, Your CSS Table mixed with inline editing http://web2pyslices.com/main/slices/take_slice/23 will be a solution that I was looking for.

Thank you.

2010/11/11 Martín Mulone <mulone...@gmail.com>

Lance

unread,
Nov 11, 2010, 8:19:04 PM11/11/10
to web2py-users
I like it:)
Reply all
Reply to author
Forward
0 new messages