_docs-v1/event-data/event-source-object.md
An "event source" is anything that provides FullCalendar with data about events.<!--more--> It can be a simple array, an event-generating function that you define, a URL to a json feed, or a Google Calendar feed.
Since version 1.5, Event Objects can have "options" associated with them. However, before you can start specifying options, you must write an Event Object in its extended form. It must be a traditional JavaScript object with properties. Here are the extended forms for each type of Event Source:
Array of events:
{
events: [
{
title: 'Event1',
start: '2011-04-04'
},
{
title: 'Event2',
start: '2011-05-05'
}
// etc...
],
color: 'yellow', // an option!
textColor: 'black' // an option!
}
Event-generating function:
{
events: function(start, end, callback) {
// ...
},
color: 'yellow', // an option!
textColor: 'black' // an option!
}
JSON feed:
{
url: '/myfeed.php',
color: 'yellow', // an option!
textColor: 'black' // an option!
}
Google Calendar feed:
{
googleCalendarId: '[email protected]',
color: 'yellow', // an option!
textColor: 'black' // an option!
}
For JSON feeds, there are additional options you can set.