Open pacobernabe opened 10 years ago
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!
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?