Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FullCalendar beforeLoad & afterLoad Callbacks

Tags:

fullcalendar

Are there any callbacks in FullCalendar that trigger before Calendar load or after the calendar completely loads? Thank you for the help!

like image 540
whobutsb Avatar asked Jun 10 '11 13:06

whobutsb


People also ask

What is the use of FullCalendar?

What is Fullcalendar? FullCalendar is a JavaScript library that seamlessly integrates with such popular JavaScript frameworks as Vue, React, Angular. Thanks to its excellent documentation, one won't have trouble incorporating the library into projects.

How do I display an image in FullCalendar?

You can add any image url to your eventObject by adding the attribute "imageurl" inside of the events definition (if you just want the image, don't specify a title):

How do I change the color on my FullCalendar?

You can change the color of all events on the calendar like so: var calendar = new Calendar(calendarEl, { events: [ // my event data ], eventColor: '#378006' }); You can use any of the CSS color formats such #f00 , #ff0000 , rgb(255,0,0) , or red .

How do I create a FullCalendar event?

Here is an example of how to specify an array of events: var calendar = new Calendar(calendarEl, { events: [ { title : 'event1', start : '2010-01-01' }, { title : 'event2', start : '2010-01-05', end : '2010-01-07' }, { title : 'event3', start : '2010-01-09T12:30:00', allDay : false // will make the time show } ] });


1 Answers

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!

like image 119
Shaded Avatar answered Oct 13 '22 16:10

Shaded