How do you add the data toggle, data target, etc. as well?
For example:
form.element(_type='submit')(['_class']='btn
btn-default',['_data-toggle']='modal',['_data-target']='.bs-example-modal-lg')
but that doesn't work...
On Friday, July 6, 2012 12:06:30 PM UTC-5, Annet wrote:
>
> To change the value of a button, this should work:
>
> form.element(_type='submit')['_value']='Login'
>
> To add the info button:
>
> form[0][-1][1].append(INPUT(_type="button",_value="Info",_onclick="document.location='%s'"
>
> %URL('function')))
>
> To add the classes:
>
> form.element(_type='submit')['_class']='btn btn-primary'
> form.element(_type='button')['_class']='btn btn-info'
>
>
> Annet
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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.