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

Capturing month changes (prev and next buttons) #74

Open
pacobernabe opened this issue Aug 15, 2014 · 1 comment
Open

Capturing month changes (prev and next buttons) #74

pacobernabe opened this issue Aug 15, 2014 · 1 comment

Comments

@pacobernabe
Copy link

When I load the calendar, we highlight a list of available dates (selectableDates) on the current month. When I change month, going back or forward, I expect to show dynamically the list of new available dates, but I can not capture the event of changing months, apparently there is only a valid event for clicking on a specific date.
One bad solution could be loading all available dates for the current year, but a customer could move forward until he arrives into a month we haven't loaded the available dates.

Is there any way to capture this event so I can refresh selectableDates?

@agent-simon-s
Copy link

I'm interested in this too.
i'm displaying filtered content in a sidebar, and i want to match the content to the calendar
i can easily modify the date picker with js functions triggered in the sidebar,
but i'm stuck on manipulating the sidebar when users interact with the datePicker
obviously we can attach a listener to
.gldp-default a.prev-arrow
and increment based on that... but it's easy to introduce perpetuate errors relying on that
is their a way to retrieve the current month and or 'firstDate' form the datePicker?
thanks!

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

No branches or pull requests

2 participants