[web2py] Re: How to change the class of from SQLFORM ?

Fri, 21 Jun 2013 05:05:46 -0700

I think I found a solution by myself;

form = SQLFORM(query,
               id,
               readonly=True,
               showid=False)
c = form.components[0]
c.attributes["_style"] = "width:80%"
c.add_class("table xtable-bordered table-condensed")
return 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