-
-
Notifications
You must be signed in to change notification settings - Fork 743
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
Pass modifiers to renderDay #237
Comments
I'd like to see this feature as well. What do you think @gpbl? It will allow you to render specific content based on modifier. I can create PR if you wish |
I'd like first to understand the use case, as I've in mind a new feature that may help in this direction :) The modifiers are intended to add a CSS classname to the day cell. What is your case @davincho, @jirikolarik ? |
If we have I'll check this new feature, maybe it's something we can utilise for this use case |
Thanks @jirikolarik for the feedback! As this is a simple to implement, it's going to be added in the next minor release! |
Yes having the same use cases as @jirikolarik described. Looking forward for next minor release! |
Released as |
I would need access to
modifiers
within therenderDay
callback. What's about passing not onlyday
but alsodayModifers
to the callback (seereact-day-picker/src/DayPicker.js
Line 412 in b5170a4
Before:
{this.props.renderDay(day)}
After:
{this.props.renderDay(day, dayModifiers)}
The text was updated successfully, but these errors were encountered: