Closed (fixed)
Project:
Datetime Flatpickr
Version:
2.0.5
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
30 Jan 2023 at 04:44 UTC
Updated:
18 Sep 2024 at 17:39 UTC
Jump to comment: Most recent
It would be great if the form widget can be used in basic views exposed filter as well as using the better_exposed_filters module. The default date format needs to be configured the same way as datetime_flatpickr configuration.
A sub-module can be added for the better_exposed_filters module support.
Comments
Comment #2
nagy.balint commentedIt seems that to use it in the normal exposed filter we would have the following options:
- Override and replace the Date filter handler class (since Drupal does not provide any filter widget plugins)
- Create a new handler for the datetime fields
- Create a generic configuration form which can inject the flatpickr library on any item based on a selector and with the generic config (might not work out)
The better exposed filter could work better as that module provides the mechanism to define a widget. Of course it also brings in the dependency, but as a sub module it could be fine.
Comment #3
Madhu Kumar M E commentedThe Better Exposed Filters module integrates with the date type fields, including the date popup. You can use this module to easily add an exposed filter with the date popup.
Comment #5
nagy.balint commentedI added initial BEF integration. For now only default config and date only.
This can be extended later with the ability to define the settings as well in a follow up issue.