Hi,
How to custom an input field width class='col-sm-x' in create/edit forms
that come from SQLFORM.grid
On SQLFORM can be done this way:
form = SQLFORM(db.movimiento)
if form.element('#movimiento_cantidad'):
wclass = form.element('#movimiento_cantidad')['_class']
form.element('#movimiento_cantidad')['_class'] = wclass + ' col-sm-3'
form.element('#movimiento_cantidad')['_maxlength'] = 8
but when the form is generic from SQLFORM.grid how can it be done?
Thanks for any help if it could be done.
--
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/d/optout.