These docs are for an old release. Info on upgrading to v5
edit doc


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 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.