开发者

FullCalendar beforeLoad & afterLoad Callbacks

开发者 https://www.devze.com 2023-03-12 05:00 出处:网络
Are there a开发者_Go百科ny callbacks in FullCalendar that trigger before Calendar load or after the calendar completely loads?Thank you for the help!loading: function (bool) {

Are there a开发者_Go百科ny callbacks in FullCalendar that trigger before Calendar load or after the calendar completely loads? Thank you for the help!


loading: function (bool) { 
  if (bool) 
     $('#loadingImg').show(); 
   else 
     $('#loadingImg').hide(); 
     //Possibly call you feed loader to add the next feed in line
},

If any event rendering or fetching for ALL the sources is happening it will be TRUE otherwise it will trigger and goto to FALSE

There is no other way to determine if a particular feed has loaded or is being loaded.

You would have to implement your own logic using the loading

where you would use

$('#calendar').fullCalendar('addEventSource', 'diaryFeed.aspx?style=Basic');

wait for load to finish and trigger to add the next source.. etc


There are a few options you can use,

loading can be used to trigger events while loading and after loading More Info

or you can use eventRender and eventAfterRender to trigger before each event is rendered and after each event has rendered.

Hope this helps!

0

精彩评论

暂无评论...
验证码 换一张
取 消