logo

FullCalendar

This version is a pre-release. Read the release notes

Calendar::addEvent

Adds a new event on the calendar.

calendar.addEvent( event [, source ] )

event is a plain object that will be parsed into an Event Object.

source represents the Event Source you want to associate this event with. It can be a string Event Source ID or an Event Source Object. When the source is refetched, it will clear the the dynamically added event from the internal cache before fetching. This parameter is optional.

This method returns the proper Event Object that was parsed from the plain object.

View a live demo of addEvent.