addCalendarEventSource
(Beta) Adds an event source object to the calendar
Parameters
controlId - The id of the calendar control
eventSource - the Event source object
Example Usages
app.addCalendarEventSource("myCal", {
events: [
{
title: 'Sammple Event 1',
start: '2020-12-08',
},
{
title: 'Sammple Event 2',
start: '2020-12-10',
},
],
id: 1,
color: 'yellow', // an option!
textColor: 'black' // an option!
});
Where events is an array that contains two event objects, each representing a calendar event. These event objects have properties like title and start. id can be used as a distinguishing parameter.
Return Values
Function does not explicitly produce return value.
Last updated
Was this helpful?