These docs are for an old release.
Info on upgrading to v5
Docs Event Sources
events (as an array)
An array of Event Objects that will be displayed on the calendar.
events (as a json feed)
A URL of a JSON feed that the calendar will fetch Event Objects from.
events (as a function)
A custom function for programmatically generating Events.
events from Google Calendar
FullCalendar can display events from a public Google Calendar.
Event Source Object
An “event source” is anything that provides FullCalendar with data about events.
eventSources
A way to specify multiple event sources.
eventSourceSuccess
A function that gets called when fetching succeeds. It can transform the response. Gets called for any type of Event source.
eventSourceFailure
Called when any of the event sources fails. Probably because an AJAX request failed.
Event Requesting
startParam
A parameter of this name will be sent to each JSON event feed. It describes the start of the interval being fetched.
endParam
A parameter of this name will be sent to each JSON event feed. It describes the exclusive end of the interval being fetched.
timeZoneParam
A parameter of this name will be sent to each JSON event feed. It describes the timezone of the startParam and endParam values, as well as the desired timezone of the returned events.
lazyFetching
Determines when event fetching should occur.
loading
Triggered when event or resource fetching starts/stops.
Methods
Calendar::getEventSources
Retrieves all Event Source Objects.
Calendar::getEventSourceById
Retrieves a specific Event Source Object.
Calendar::addEventSource
Dynamically adds an event source.
Calendar::refetchEvents
Refetches events from all sources and rerenders them on the screen.
EventSource::refetch
Causes this event source to fetch its event data again.
EventSource::remove
Removes all events associated with this source and prevents it from being fetched again.