Support for Future Date Presets in DatePicker Component #1165
Replies: 5 comments
-
We need this too. An alternative could be to define your own date ranges in a Flux config file. |
Beta Was this translation helpful? Give feedback.
-
From what I can see, they are built as If there would be some way how to define your own Something like that could give us the possibility to specify Presets based on the application logic and even multiple ones. |
Beta Was this translation helpful? Give feedback.
-
I've tried modifying the DateRange class + DateRangePreset which worked fine to display in the calendar, but it seems there are also some client-side methods defined that actually select the preset. Therefore I doubt it could be configurable - but some "next" methods would definitely be welcome, yes. |
Beta Was this translation helpful? Give feedback.
-
This is really needed. Not having ability to customize it or at least set it into the future, really makes it hardly usable. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Currently, the DatePicker component offers presets that focus solely on the current or past dates, such as "Today," "Yesterday," "This Week," and "Last 7 Days."
This limitation poses challenges for applications that require scheduling or planning future events, as there are no preset options for selecting upcoming dates.
It would be beneficial to enhance the DatePicker component by adding presets that cater to future dates.
Proposed presets include:
These additions would provide users with quick selection options for common future date ranges, enhancing the component's versatility for various applications.
An alternative solution would be to allow developers to define custom presets. This flexibility would enable the creation of application-specific date ranges, accommodating both past and future dates as needed.
Beta Was this translation helpful? Give feedback.
All reactions