lbertenasco / ap-ng2-fullcalendar

Angular2 fullcalendar component
MIT License
35 stars 18 forks source link

How to use next/previous click to get current date #15

Closed aneeskodappana closed 7 years ago

aneeskodappana commented 7 years ago

Is there any way to detect the event when the month is changed

lbertenasco commented 7 years ago

Hi @aneeskodappana ! Have you tried adding this to your CalendarOptions?

calendarOptions = {
  ....
    viewRender: (view, element) => this.viewRender(view, element),
  ....
}
viewRender(view, element) {
  // logic
}

You can use viewRender: https://fullcalendar.io/docs/display/viewRender/