Skip to content
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

Add support for react-calendar's tileDisabled function, for disabling specific tiles #680

Closed
1 task done
Jurek-Raben opened this issue Jan 15, 2025 · 1 comment
Closed
1 task done
Labels
enhancement New feature or request

Comments

@Jurek-Raben
Copy link

Before you start - checklist

  • I have checked if this feature request is not already reported

Description

react calendar supports the individual disabling of specific tiles thru a callback method "tileDisabled". Please also add this one to react-date-picker, too:
https://stackoverflow.com/questions/71384956/react-calendar-tiledisabled-saturdays-and-sundays

Btw. there also is the callback method "tileClassName" for adding specific class names to tiles:
https://stackoverflow.com/questions/60446117/how-to-mark-particular-dates-in-react-calender

Might be worth adding this, too!

Proposed solution

Simply pass thru the reference of "tileDisabled" and "tileClassName"?

Alternatives

No response

Additional information

No response

@Jurek-Raben Jurek-Raben added the enhancement New feature or request label Jan 15, 2025
@Jurek-Raben
Copy link
Author

Ah this actually already works using calendarProps, sorry :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant