I seem to keep underestimating the widget classes and their power.
Reading the code I can see that widgets pretty much "own" the fields and
their representation in all respects. I can change input class,
"represents", "requires" and pretty much anything else the Field needs to
show itself.
class MoneyWidget(StringWidget):
_class = 'money'
...etc...
Some custom widgets and I think I'll be in business -- plus I can
selectively use or not use the javascript validators where I want.
On Sunday, August 25, 2013 7:00:54 AM UTC-7, Anthony wrote:
>
> Also, note that in this case, I think you can just do:
>
> Field('myfield', 'integer',
> widget=SQLFORM.widgets.string.widget)
>
> Anthony
>
>
--
---
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.