-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DateRangePicker] Support month and year edition on the range pickers #4546
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Same pain point as in mui/material-ui-pickers#1769. I don't what what we should do, let's leave it to X. |
It would be maybe also nice to have a MonthRangePicker and YearRangePicker for the time being I will use tow DatePickers with month/year views |
@socramm9 Do you by any chance have any example on how you achieved this? |
@vazkir Yes it not up to MUI standards but its usable. Fell free to modify it however you want |
@socramm9 You're my hero ... pulled it down, turned it into a component, can’t stop smiling. Thanks SO much for posting your solution! |
Particularly need this for analytics/statistics application... |
https://material.angular.io/components/datepicker/overview does handle this also pretty well, might be something for inspiration |
We agreed to first add support for changing With a limitation of only supporting it when This does not impact anything related to picking the month and year ranges. |
Hello, we reported #14874, sorry for the duplicate but we couldn't find this one when we searched for issues. Should this, and #14119, now be marked with
|
@LukasTy do you think that you could help on this particular topic? / it would be great to know if there is at least a plan for it |
@gabbi-pf I added the requested label 👍 We don't plan to support it in the new feature because we have a very heavy roadmap for the coming months. |
I managed to make a workaround using DateRangeCalendar for the range selection and DateCalendar for the year and month selection. I am posting part of my code here if anyone still needs the component. Ignore the styles and the customization, the important part to look at is the monthYearView state, the dateRangeCalendarProps ref and how i am using DateCalendar and DateRangeCalendar with the custom calendarHeader. PS: i am new to posting in github discussions Screen.Recording.2025-01-31.at.18.07.19.mov |
Correct me if I miss out anything. While using DateRangePicker on v5, I am unable to do a quick selection to change year / month. Have to manually click on the < or > button. Understand that the range design with the intend of selecting recent dates but I do have use case that requires users to select date from years ago.
Summary 💡
Allow selection of year or month upon clicking the month / year.
Examples 🌈
Motivation 🔦
The text was updated successfully, but these errors were encountered: