[web2py] Re: Field decimal default widget

2015-06-05 Thread Anthony
You can submit a Github issue. Adding the "number" type seems fine, but we should not add the "step" attribute. Anthony On Friday, June 5, 2015 at 12:26:00 AM UTC-4, Pavel Tyurikov wrote: > > Thanks for advice. I meen isn't it would be nice to have a defautl widget > with right attrs set? I dev

[web2py] Re: Field decimal default widget

2015-06-04 Thread Pavel Tyurikov
Thanks for advice. I meen isn't it would be nice to have a defautl widget with right attrs set? I developing mobile-app and notiсed that if INPUT has a "number" type, the phone shows a numeric keyboard, on clicking on it. So I want to ask to add this functionality as deafult too. понедельник, 1

[web2py] Re: Field decimal default widget

2015-06-01 Thread Anthony
You can create a custom widget and then do: Field(..., widget=my_custom_widget) Alternatively, if you want to change all decimal widgets generated by SQLFORM without having to bother specifying a custom widget for each field, you could monkey patch gluon.sqlhtml.DecimalWidget or gluon.sqlhtml.