options for date picker?
options for date picker?
johnwillyn
Posts: 14Questions: 0Answers: 0
Is there any way to utilize a different date picker than the jQuery UI widget? I am mostly targeting mobile devices, which have their own date widgets, and would like to default to these if possible. I also want to reduce the overall size of the app to be able to be able to go offline if possible, so not loading the fairly large UI tools would address this as well.
Thanks in advance,
JohnL
Thanks in advance,
JohnL
This discussion has been closed.
Replies
There is a Bootstrap DatePicker plug-in which uses this library: http://eternicode.github.io/bootstrap-datepicker/
Plug-in code: https://editor.datatables.net/fields/plugins#bootstrap-datepicker
The same method used by that plug-in could be used to include any other calendar control.
> I am mostly targeting mobile devices, which have their own date widgets, and would like to default to these if possible.
As in the HTML5 date picker? You could try:
[code]
{
"label": "My date field",
"name": "date",
"opts": {
"type": "date"
}
}
[/code]
That will extend the default `text` field type with a type of `date` . Support for it looks patchy though: http://caniuse.com/#search=date
Thanks,
Allan
Thanks again,
JohnL
Allan