react-calendar
react-calendar copied to clipboard
Dropdown select for month and year
Is it possible to change the way you navigate from month to month & year to year to simply be a dropdown? I find the entire calendar switching views jarring. I'd like to have it so when you click on the year, it will simply show a dropdown of years to select. When you click on the month, it shows a dropdown of the months.
Hi, that is quite a complicated problem. In current React-Calendar architecture, calendar layout tied closely with its logic in root component. I think it would make sense to split the view from the logic, essentially making it possible to replace the whole view logic - but that would mean you would need to handle displaying months, years, decades etc. on your own, too. This would be helpful for testability, though!
Other way is to just create renderNavigation prop and allow people to redefine the logic of rendering navigation, and making sure that existing elements are exported for reuse.
What do you think?
Kinda related to #193
Splitting the view from the logic makes sense.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.
Still interested in this.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.