Skip to content
Advertisement

fullcalendar do something when view change

I need to do something when view change. For example when from motnh go to agendaDay.

Didnt work anythink.any ideas?

JavaScript

and

JavaScript

Advertisement

Answer

Small error in the code. You want the function inside the () to return another function but it isn’t running. The correct form is:

JavaScript

This is called a Self-Executing Anonymous Function.


Your code works when you do:
JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement