Datepicker: Add enabledDates Prop and Month/Year Disabling #2903
Unanswered
YannisJustine
asked this question in
PrimeVue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I would like to request an enhancement for the
Datepicker
component in PrimeVue. Specifically, I need it to behave similarly to theCalendar
component in PrimeReact, which offers more advanced control over enabled and disabled dates.Requested Features
enabledDates
Prop:enabledDates
(array of valid dates) that restricts the calendar to only allow selection of the specified dates.Month and Year Disabling:
enabledDates
), that month/year should be disabled in the datepicker view.Use Case
This feature is useful in scenarios where only specific dates are allowed for selection, such as booking systems, scheduling apps, or event-driven applications. The
Calendar
component in PrimeReact already offers this functionality, and it would be great to have it in PrimeVue as well.Beta Was this translation helpful? Give feedback.
All reactions