loading fullcalendar events when the month changes

So I'm a little unsure about how to structure my calendar events with fullcalendar. Currently, when my app loads I'm injecting a json events object into the body of my page, allowing me to init the full calendar quickly, and without an ajax call. On all subsequent month view changes I want to send an ajax request with the given month as an argument so I can pull in that months events. How would I go about doing this? Is this the lazyLoad feature? How can I get the calendar to use the local event data when it initially displays, but then use ajax requests for all subsequent months?


Please note in the latest version the viewDisplay has been replaced with viewRender Find how to use it here

I use it like this

        viewRender: function (view, element) {
        }

You can get the start date and end date like this. view.start, view.end


try to read the docs, events (as a json feed)
other option is refetch/render events every time date has changed viewDisplay

链接地址: http://www.djcxy.com/p/81156.html

上一篇: FullCalendar在月视图中显示事件,但不显示日和周视图?

下一篇: 当月份发生变化时加载fullcalendar事件