Add few more dynamic config support for non-native date picker #2982
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request addresses the issues #1548 and #1546
Overview:
This pull request introduces dynamic configuration options for enhancing the Flatpickr library's non-native date picker. It empowers users to customize their date picker experience with greater flexibility.
Features Added:
Added dynamic config support for below properties:
monthSelectorType
: Allows users to define the month selector type for better navigation.allowInput
: Enables/disables the manual input of dates.enableTime
,time_24hr
,enableSeconds
: Allows time-related configurations for precision.weekNumbers
: Adds support for displaying week numbers in the date picker.Implementation Details:
The implementation involved extending the configuration options within the Flatpickr library, enabling the specified properties to accept dynamic changes based on user preferences.
Note:
Dynamic configuration currently doesn't support the native date time picker.
Benefits:
These dynamic configurations empower users to tailor their date picker according to their specific needs, enhancing usability and flexibility in diverse applications.
Request for Feedback:
Feedback from the maintainers and community contributors is welcomed for further refinement and improvement.
Thank you for considering this enhancement!