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
onClickWeek and onClickMonthLabel #12
Comments
Hey @amansur, You can install it directly from npm for testing purposes (do not use on production):
|
Thanks so much for the speedy enhancement! Unfortunately, I wasn't able to get the new branch installed. Looking at the
|
Ah yeah, sorry, I missed the part that git branch lacks /build folder. You'd need to run |
...or take it precompiled from me: |
Thank you, the precompiled version works great. For the calculation, I assume you're using the ISO 8601 standard of having Monday be the first day of the week? |
Not necessairly. If you explicitly chose calendarType |
The callback is always given the Monday as the weekStartDate. I've tried explicitly setting the |
Sorry, my bad! Forgot to pass one parameter. ;) |
Awesome, it works great now! Thanks again! |
Glad I could help. Expect it in the next release :) |
onClickWeekNumber has been added in v2.6.0. onClickMonthLabel would be too problematic, but I think you can apply custom callbacks by yourself, as well. |
Hi there wojtekmaj
I'm really enjoying using your Calendar component.
The showWeekNumbers prop is especially useful for me. Would it be possible to add a click listener for the week numbers similar to the other onClick{period} props.
For my use, I'm also disabling all views aside from Month using the minDetail prop. Since the month label no longer changes the view, I'd like to be able to attach a click handler on the month label. Could that be a prop as well?
Thanks again for the great module!
The text was updated successfully, but these errors were encountered: