Closed ftrotter closed 4 years ago
Of all of the controls that Alpaca offers, I'm probably least satisfied with the date and time picker controls because, as you note in another thread, they have dependencies on jQuery UI.
I'd like to see us move to a jQuery-only date control and additionally support the innate HTML5 behaviors + bootstrap date/time picker depending on the environment in which Alpaca is being run. At present, the jQuery UI based controls work but they're pretty limited.
I think the feedback you've provided here is right on. If you have implemented any code to support the path you think the control should take, we'd be happy to take a look. Feel free to submit a pull request.
Otherwise, would love to hear what you think with respect to moving off the jQuery UI base for this control. If we re-implement as intended, it would be really nice to have you and your project available as a method for affirming the design and results.
The ability to pass DatePicker and TimeDatePicker options for the underlying jQuery UI controls is now implemented in head and part of release 1.1.1. In addition, the documentation pages have been expanded and new examples have been added to show how to use these.
Excellent. This project is on fire!!
-FT
Hello,
my question is, how to apply options to the datepicker (bootstrap)? Actually it have to work with the "picker"-attribute in the options-properties, I already know, but I can not set a locale for the picker.
Could you please help me?
Would also be nice, if timepicker would use the default locale, that was set for alpaca :-). Or is there an option, to set a default date-format & a default locale as plugin-default, so not every field has to be declared with such options?
Example:
Hey guys,
do you have any new ideas/functions/hints for me? The more the time runs, the more I would need an answer/workaround for this problem :-)
Closing given no updates.
It is not clear, from the documentation, if it is possible to pass options along to the jquery datepicker system.
If it is possible, it should be included in the documentation.
If it is not possible, this is a fairly obvious feature...
http://api.jqueryui.com/datepicker/
Almost all of these should be useable via passthrough.. on one of the ways to turn these things on...
It might be nice to have a syntax based on HTML5 date options... so that this would upgrade to HTML5 smoothly...
-FT