[web2py] Re: How to customize widgets to act like Onsen UI components

2017-09-16 Thread Bernardo Leon
You are right, thank you! El sábado, 16 de septiembre de 2017, 17:58:36 (UTC-5), Anthony escribió: > > On Saturday, September 16, 2017 at 4:23:43 PM UTC-4, Bernardo Leon wrote: >> >> Awesome as always Anthony Thank you! >> >> Yes I am talking about the SQLFORM Field objects. >> >> So I will need

[web2py] Re: How to customize widgets to act like Onsen UI components

2017-09-16 Thread Anthony
On Saturday, September 16, 2017 at 4:23:43 PM UTC-4, Bernardo Leon wrote: > > Awesome as always Anthony Thank you! > > Yes I am talking about the SQLFORM Field objects. > > So I will need to create a Widget by subclassing FormWidget and return the > Ons tag object and later monkey patch. I will

[web2py] Re: How to customize widgets to act like Onsen UI components

2017-09-16 Thread Bernardo Leon
Awesome as always Anthony Thank you! Yes I am talking about the SQLFORM Field objects. So I will need to create a Widget by subclassing FormWidget and return the Ons tag object and later monkey patch. I will try this way. Thank you for your ideas :) El sábado, 16 de septiembre de 2017,

[web2py] Re: How to customize widgets to act like Onsen UI components

2017-09-16 Thread Anthony
If you are talking about using SQLFORM with a DAL table, when you define Field objects, you can specify a custom widget via the "widget" argument -- it must be a callable object that takes a Field object and a value. For more details, see