Skip to content
Advertisement

Set events in fullcalendar from array

I’m using fullcalendar, but I want to set events from array, for example:

JavaScript

This is a static example, I’ll get this array and in each case I’d have 3 or 9 or … differents events.

But example is:

JavaScript

How can I remove this two example events and set only my array “countries”?

Is it possible?

Advertisement

Answer

Removes events from the calendar.

JavaScript

Dynamically adds an event source.

JavaScript

From here: https://fullcalendar.io/docs/addEventSource

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement