And you might consider defining the class attribute with a custom
widget for the css to be available to all app forms.

Custom widgets are covered in the web2py book (7.7)

On 28 dic, 19:42, Alan Etkin <spame...@gmail.com> wrote:
> It is possible to iterate trough any input element within the form
> object with this command
>
> for f in form.elements("input"):...
>
> Sequences of objects can be retrieved with the css like syntax:
>
> element sub-element
> element.class
> element[type=submit]
>
> Where form is a SQLFORM instance
>
> And class input attribute can be set inside the loop with this:
>
> f["_class"] = <custom class name string>
>
> On 28 dic, 17:52, Kenny Meyer <knny.m...@gmail.com> wrote:
>
> >http://stackoverflow.com/questions/8661166/custom-css-classes-for-sql...
>
>

Reply via email to