Back to Fullcalendar

eventSources

_docs-v6/event-source/eventSources.md

latest542 B
Original Source

A way to specify multiple event sources.

<div class='spec' markdown='1'> Array </div>

This option is used instead of the events option.

You can put any number of event arrays, functions, JSON feed URLs, or full-out Event Source Objects into the eventSources array.

Here is an example calendar that displays two JSON feeds:

js
var calendar = new Calendar(calendarEl, {
  eventSources: [
    '/feed1.php',
    '/feed2.php'
  ]
});