We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We can extend the type of modifiers to accept days of the weeks.
A common case is to match all the Sundays. This can be done using a function:
const sunday = day => day.getDate() === 0 <DayPicker disabledDays={ sunday } />
Instead, we should be able to write:
// Disable Sundays <DayPicker disabledDays={{ daysOfWeek: 0 }} /> // Disable Sundays and Saturdays <DayPicker disabledDays={{ daysOfWeek: [0, 6] }} />
The text was updated successfully, but these errors were encountered:
gpbl
No branches or pull requests
We can extend the type of modifiers to accept days of the weeks.
A common case is to match all the Sundays. This can be done using a function:
Instead, we should be able to write:
The text was updated successfully, but these errors were encountered: