-
-
Notifications
You must be signed in to change notification settings - Fork 336
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
feat(calendar): add eventDates support and onSelect handler #677
Conversation
Btw: This PR also fixes the issue from #574 (check for undefined after parsing date) without the extra logging. I did this because the other PR did not receive any more feedback from the author since 2 weeks and the fix was only one LOC. |
Last commit adds event handler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This PR adds support for
eventDates
and a new event handleronSelect
to provide individual functionality whenever a cell-item was clicked.This works similar as
disabledDates
by providing the option to set a tooltip given a message to a date cell.In addition a givenclass
can be added to the cell. Otherwise a defaulteventClass
(defaultblue
) will be added to every event-cell.Example using individual className for eventDate cells
Example using default className for each event
Example using onSelect event handler
Testcase
eventDates
http://jsfiddle.net/nc0yutq2/
onSelect
http://jsfiddle.net/c7kLvef4/
Screenshot
Closes
#674