Creating a DatePicker with a year or decade view #3950
Replies: 2 comments 10 replies
-
Beta Was this translation helpful? Give feedback.
-
I just wanted to add an additional voice of support for expanding the functionality of this calendar. I work for a company that builds software for retirement communities. Selecting a birth date from a calendar is something our users like to be able to do. If you look at the example here: https://projects.wojtekmaj.pl/react-calendar/ Clicking the month name at the top of the calendar, brings you to a month selector. Clicking the year at the top of the month selector brings you to a year selector. In the year selector, clicking the back and forth buttons runs the user through decades. Having built-in functionality like this would be really helpful. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've had a great experience creating a DatePicker component and am grateful for the fantastic documentation.
However, I've hit a bit of a blocker in trying to create a Datepicker with both a yearly view and a decade view. That is, where I can allow users to select a month or a year rather than a day. And where the Previous and Next buttons will enable me to go forwards/back a year/decade respectively.
Does anyone know how this can be achieved and can point me to any examples?
Many thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions