Replies: 1 comment 1 reply
-
You could use the isDayInRange on the DateUtils (http://react-day-picker.js.org/api/DateUtils) to check if the current day is within range of the current modifier. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Hi. Great library, love it.
What I want to implement - tooltips over holidays or vacations.
I've made full year calendar and I want mark all holidays on it. I can make it with modifiers - that's great. Then I need, somehow, to add tooltips to holidays/vacations - when hovering a day, there would be small tooltip with name of this holiday.
For example:
1 Jan | New Year's Day - when someone hovering this day, I need to show small tooltip with text "New Year's Day". I didn't found any solutions that can be implemented with modifiers :(
12.10.2019-12.20.2019 - the same for vacations. I need to show tooltip with text - "Mark's vacation".
For tooltips (and others) I'm using Material UI framework.
Describe the solution you'd like
Ability to set/get more data in the
renderDay
method or small instructions how to implement it without adding new features. But I think Tooltips over dates will be helpful and it would be great to see them in theexamples/docs
.Additional context
http://react-day-picker.js.org/examples/elements-cell
I've seen this example, but it is not covering vacations, I guess, with date ranges.
Here my code example:
Beta Was this translation helpful? Give feedback.
All reactions