How to call events on clicking prev and next button?

后端 未结 11 1623
天涯浪人
天涯浪人 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:11

    During declaration of Calendar in events you can write the event's callback function:

    $('#calender').fullCalendar({
    
    events:  function (start, end, timezone, callback) {
                        callback(eventsarray);
                    }
    });
    

    //eventsarray - This is a collection of data of the calendar. You can also call month wise function in this by passing first and last date of selected / current month and handle prev and next event.

提交回复
热议问题