>From http://groups.google.com/group/web2py/msg/e6acbb8df0db8e64

<quote>
any helpers, including a form, is a tree:

form[0] is the table in the form
form[0][i] is the i-th row
form[0][i][1] is the 2nd column of the i-th row
form[0][i][1][0] is the INPUT inside that
form[0]['_class'] is the class attribute of the table
form[0][i][1][0]['_name'] is the name attribute of the INPUT
form.element(_name='email')['_class'] is the class attribute of the
element with attribute name=='email'

etc.

You can manipulate and change the form structure and form attributes
in this was any way you want.
</quote>

form[0], the table, behaves also as a list, so you can insert or
append to it e.g.:

form[0].insert(TR(...), _id='inserted_table_row')

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to