gitana / alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.
http://www.alpacajs.org
Other
1.3k stars 368 forks source link

datepicker options #64

Closed ftrotter closed 4 years ago

ftrotter commented 11 years ago

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

uzquiano commented 11 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.

uzquiano commented 11 years ago

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.

ftrotter commented 11 years ago

Excellent. This project is on fire!!

-FT

PiQ99 commented 9 years ago

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:

http://jsfiddle.net/PiQ99/ussfx79v/

PiQ99 commented 9 years ago

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 :-)

ftrotter commented 4 years ago

Closing given no updates.