How to call events on clicking prev and next button?

后端 未结 11 1650
天涯浪人
天涯浪人 2020-12-24 07:26

In jQuery fullcalendar we have previous and next buttons. How can we call some events on click of these buttons?

11条回答
  •  臣服心动
    2020-12-24 08:20

    When you click them, viewRender event is triggered. You could add your code inside it as well.

    $('#calendar').fullCalendar({
        viewRender: function(view, element) {
            //Do something
        }
    });
    

提交回复
热议问题