thanks this helps me a lot. Will fix it this week. On Tuesday, 5 April 2016 14:31:41 UTC-5, shoema...@riseup.net wrote: > > Working on integrating the new date and time pickers with my code, > thoughts: > > * I added sugar.js and widgets.js and removed all of the existing JS. > The calendar locked up those plus the existing JS: I wasn't using > (AFAIK) any of the existing JS, and it wasn't clear what parts were in > what files, so I stopped including them. > > * The background color for the picker is set in the element, overriding > my CSS -- I have to use !important, which seems less than ideal. > > * My form (created by SQLFORM) has separate date and time fields, with > .date and .time classes by web2py (no data-format): I get a full > datetime picker for both. > > * The time picker uses 12 hour time with no AM/PM by default > > * I'm getting an error from inside widgets.min.js: self.attr(...) is > undefined on line 28 > > * getting 'data-format' in my SQLFORM fields was harder than it should > have been. I ended up needing: > > db.cal_event.starttime.widget = lambda field, value: > SQLFORM.widgets.time.widget( > field, value, **{'_data-format': "{HH}:{MM} {TT}"}) > > * is there a way to get the date picker to go away when I click on a > day? > I have to click out of the calendar and not in another input item to > make it hide? I love that TAB still takes me to the next field, but it > would be great if I could use arrow keys to navigate -- I still have to > switch from keyboard/mouse to move through the form. > > > > > > > > > On 2016-04-02 10:44, Massimo Di Pierro wrote: > > Eventually I will move them to a different repo. The js do not depend > > on > > any css. > > > > On Tuesday, 29 March 2016 19:32:40 UTC-5, ..mg.. wrote: > >> > >> Is there an easy way to get just the widgets? I have stupid.css, and > >> I should have some time Thursday to play with it. > >> > >> -mg > >> > >> On Tue, Mar 29, 2016 at 02:25:11PM -0700, Massimo Di Pierro wrote: > >> > You do not have to use stupid css to use the tags widget. But you > will > >> need > >> > to write some CSS to make it look the way you want. > >> > > >> > On Monday, 28 March 2016 23:52:38 UTC-5, Ron Chatterjee wrote: > >> > > > >> > > If we dont use stupid css wondering what will b the equivalent > >> > > autocomplete with dismissal tags can b (for search). > >> > > >> > -- > >> > 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 web2py+unsubscr...@googlegroups.com. > >> > For more options, visit https://groups.google.com/d/optout. > >> > >
-- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.