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

Fri, 21 Jun 2013 05:20:08 -0700

+1

You can also replace

c = form.components[0]

with

c = form.element('table')

On Friday, 21 June 2013 07:04:45 UTC-5, Holger Schurig wrote:
>
> 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