More modes to datepicker (week, month, year) #1359
Unanswered
dansan92
asked this question in
Feature Requests
Replies: 1 comment
-
for month see #1099 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know this might be a bit complicated, but it would be great to have a few more modes for the datepicker, other than days and range.
Being able to quickly select between full weeks, navigate through months and years in a grid, is very useful for filtering data quickly.
Much better than using selects, for example, and you could have everything within a single datepicker.
Week mode example (using Chrome):
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/week
Month mode example (using Chrome):
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/month
Year mode would be a grid like months.
Another example using all these modes:
https://ant.design/components/date-picker
This one even has quarters, which is also very useful.
I'm no expert, but I'd imagine you can convert the range mode to be fixed full weeks, as the datepicker already has a setting to display week numbers.
Beta Was this translation helpful? Give feedback.
All reactions