Implementing a download calendar callback with a full calendar

We are looking for an example of how to implement a load callback.

Here is my code that I still use. Just not sure how to use the load callback.

Do I need to use events as a function or can I add something to the code that I use here?

thanks

$('#calendar').fullCalendar({ theme: true, header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, editable: true, events: { url: 'calendar/ajax.php', data: { uid: '<?=$_SESSION[$pageID]['owner_uid']?>', fbpageid: '<?=$pageID?>' }, error: function() { alert('there was an error while fetching events!'); } }, eventMouseover: function(calEvent,jsEvent) { xOffset = 10; yOffset = 10; var left = (jsEvent.clientX + yOffset); if ( (jsEvent.clientX + 200 + yOffset) > $(window).width() ){ left = (jsEvent.clientX - 200); } $("body").append(calEvent.tooltip); $("#p_"+calEvent.id) .css("top",(jsEvent.clientY - xOffset) + "px") .css("left",left + "px") .fadeIn("fast"); }, eventMouseout: function(calEvent,jsEvent) { $("#p_"+calEvent.id).fadeOut("fast"); $("#p_"+calEvent.id).remove(); } }); 
+6
source share
1 answer

Here is an example of using a load callback:

 loading: function(bool) { if (bool) $('#loading').show(); else $('#loading').hide(); }, 
+16
source

Source: https://habr.com/ru/post/923302/


All Articles