fullcalendar/event_data/eventSources.txt

33 lines
759 B
Plaintext

eventSources *1.2*
==================
A way to specify multiple event sources.
<div class='spec' markdown='1'>
Array
</div>
This option is used instead of the `events` option.
It can take an Array of Arrays/Functions/URLs (anything that the `events` option would take).
Here is an example calendar that displays two [JSON feeds](events_json_feed):
$('#calendar').fullCalendar({
eventSources: [
'/feed1.php',
'/feed2.php'
]
});
Here is how you would display two Google Calendars:
$('#calendar').fullCalendar({
eventSources: [
$.fullCalendar.gcalFeed("http://www.google.com/feed1"),
$.fullCalendar.gcalFeed("http://www.google.com/feed2")
]
});
More info on displaying Google Calendars can be found [here](../google_calendar).