-
Notifications
You must be signed in to change notification settings - Fork 106
Open ended ranges #70
Description
Greetings to Saturn Team!
I have evaluated your lib for use in our app, and unfortunately it didn't meet our needs. I wanted to provide feedback about our use case, so that it may perhaps be considered in future iterations.
We frequently need the ability to select open-ended date ranges. That is, a range that has no beginning, or a range that has no end. It is interpreted as "from the beginning of time until X date" if start date is omitted, or "from X date onward" if end date is omitted. Usually also though, we need the ability for the user to select both dates if they want.
Although Saturn offers a really neat feature for single-date selection, it wasn't able to fulfill our needs, because it displays the single date in both the from and to boxes upon dismissal.
If you would please consider developing that kind of functionality, I guess the UI would display colorized date ranges for all dates leading up to the end date, and all dates after the start date, without the need to have both. So, for example, if there was no start date, all dates would be highlighted up until the end date. And if there is no end date, all dates would be highlighted from the start date onward, without end.
I'm actually just not sure what the UX would be for selecting only an end date. Perhaps it would depend on which control the user initially clicked upon.
It would also be cool, if I could set a placeholder if one or both dates are undefined, such as "Open Ended", or "No Start Date" or "No End Date".
Hope that makes sense, and would really appreciate your feedback about that use case, and of course we would love to see a feature like that make it into a future version of Saturn-Datepicker lib.
🍺