Currently we're implementing yadcf to filter through the datatable. So far everything works fine but we're facing an issue with the date(time)picker for filter_type date/range_date.
We consider the jQuery-ui datepicker not user friendly because you can only cycle through months. So in order to go back a couple of years it takes quite some clicks to reach the desired date(I know you can manually change the year by typing in it in there yourself but we consider that also not user friendly).
The other option we read about in the documentation is that it has support for eonasdan-bootstrap-datetimepicker. At first we didn't like the timepicker part but we gave it a shot anyway. So I've installed the following modules:
The new datetimepicker is correctly loaded but this adds new problems:
{Hour (also shows values beyond 23)}/{Day abbrevation (like Th for Thursday)}/yyyy (not even the actual year number)
. Even setting date_format (to for example yyyy/mm/dd
) doesn't affect the output.So overall, it is even worse than jquery-ui-datepicker.
I've tried installing several other bootstrap date(time)picker but they don't work properly(some issues were that they wouldn't actually trigger on clicking the input field, not automatically(or being able to close at all) closing when you select the last part(day), not passing the date to the input field.
Versions we use are:
So my question is, does anyone know (how to setup)a decent datepicker(or datetimepicker if there is no other option) to use in the YADCF filters?
You should use the Eonasdan/bootstrap-datetimepicker, Take a look at the showcase yadcf-showcase.appspot.com/dom_bootstrap.html and yadcf-showcase.appspot.com/dom_bootstrap_time.html (source code in the showcase repo on github)