Calendar::addEvent
Adds a new event to 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. When the source is refetched, it will clear the dynamically added event from the internal cache before fetching. This optional parameter can be specified as any of the following:
- an Event Source ID
string
- an Event Source Object
true
, which signifies the first event source
This method returns the proper Event Object that was parsed from the plain object.
View a live demo of addEvent.