javascript - FullCalendar: refetchEvents call causes to all meetings to blink during re-rendering -
i play fullcalendar , use refetchevents:
$('#calendar').fullcalendar('refetchevents');
it works , command calls events
method callback
events: function (start, end, timezone, callback) { /* ... */ }
however first remove meetings calendar , after - renders new ones. approach causes table blink (different google behaviour).
is there other way render meetings without clear-add?
seems need add deltas makes work hard, messy , not stable
thanks,
my suggestion ajax request first (where put .fullcalendar('refetchevents')
), , if succeeds, call refetchevents. code this:
var events = []; $.get('/events/get', function(result){ events = result; }); $('#calendar').fullcalendar({ events: function (start, end, timezone, callback) { callback(events); } });
Comments
Post a Comment