Hum..... from the book 
...http://web2py.com/books/default/chapter/29/07#Widgets

Sometimes widgets take additional arguments and one needs to specify their 
values. In this case one can use lambda

db.mytable.myfield.widget = lambda field,value:     
SQLFORM.widgets.string.widget(field,value,_style='color:blue')

Widgets are helper factories and their first two arguments are always fieldand 
value. The other arguments can include normal helper attributes such as 
_style, _class, etc. Some widgets also take special arguments. In 
particular SQLFORM.widgets.radio and SQLFORM.widgets.checkboxes take a 
styleargument (not to be confused with 
_style) which can be set to "table", "ul", or "divs" in order to match the 
formstyle of the containing form.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to