# Event Source Object

> FullCalendar v1 documentation, for an old release. Web version: https://legacy.fullcalendar.io/v1/event-source-object
>
> Latest version (v7): https://fullcalendar.io/docs/event-source-object.md

An "event source" is anything that provides FullCalendar with data about events.<!--more--> It can be a [simple array](https://legacy.fullcalendar.io/v1/events-array.md), an [event-generating function](https://legacy.fullcalendar.io/v1/events-function.md) that you define, a [URL to a json feed](https://legacy.fullcalendar.io/v1/events-json-feed.md), or a [Google Calendar feed](https://legacy.fullcalendar.io/v1/google-calendar.md).

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:

```js
{
  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:

```js
{
  events: function(start, end, callback) {
    // ...
  },
  color: 'yellow',   // an option!
  textColor: 'black' // an option!
}
```

JSON feed:

```js
{
  url: '/myfeed.php',
  color: 'yellow',   // an option!
  textColor: 'black' // an option!
}
```

Google Calendar feed:

```js
{
  googleCalendarId: 'abcd1234@group.calendar.google.com',
  color: 'yellow',   // an option!
  textColor: 'black' // an option!
}
```

## Event Source Options

<table id='options'>
<tr>
<th>
color
</th>
<td>
Sets every <a href='https://legacy.fullcalendar.io/v1/event-object.md'>Event Object's</a> <code>color</code> for this source.
</td>
</tr>
<tr>
<th>
backgroundColor
</th>
<td>
Sets every <a href='https://legacy.fullcalendar.io/v1/event-object.md'>Event Object's</a> <code>backgroundColor</code> for this source.
</td>
</tr>
<tr>
<th>
borderColor
</th>
<td>
Sets every <a href='https://legacy.fullcalendar.io/v1/event-object.md'>Event Object's</a> <code>borderColor</code> for this source.
</td>
</tr>
<tr>
<th>
textColor
</th>
<td>
Sets every <a href='https://legacy.fullcalendar.io/v1/event-object.md'>Event Object's</a> <code>textColor</code> for this source.
</td>
</tr>
<tr>
<th>
className
</th>
<td>
Sets every <a href='https://legacy.fullcalendar.io/v1/event-object.md'>Event Object's</a> <code>className</code> for this source.
</td>
</tr>
<tr>
<th>
editable
</th>
<td>
Sets every <a href='https://legacy.fullcalendar.io/v1/event-object.md'>Event Object's</a> <code>editable</code> for this source.
</td>
</tr>
<tr>
<th>
startEditable
</th>
<td>
Sets every <a href='https://legacy.fullcalendar.io/v1/event-object.md'>Event Object's</a> <code>startEditable</code> for this source.
</td>
</tr>
<tr>
<th>
durationEditable
</th>
<td>
Sets every <a href='https://legacy.fullcalendar.io/v1/event-object.md'>Event Object's</a> <code>durationEditable</code> for this source.
</td>
</tr>
<tr>
<th>
allDayDefault
</th>
<td>
Sets the <a href='https://legacy.fullcalendar.io/v1/allDayDefault.md'>allDayDefault</a> option, but only for this source.
</td>
</tr>
<tr>
<th>
ignoreTimezone
</th>
<td>
Sets the <a href='https://legacy.fullcalendar.io/v1/ignoreTimezone.md'>ignoreTimezone</a> option, but only for this source.
</td>
</tr>
<tr>
<th>
eventTransform
</th>
<td>
Sets the <a href='https://legacy.fullcalendar.io/v1/eventDataTransform.md'>eventDataTransform</a> callback, but only for this source.
</td>
</tr>
</table>

**For JSON feeds**, [there are additional options you can set](https://legacy.fullcalendar.io/v1/events-json-feed.md#options).
