Calendar::addResource Premium
Adds a new resource to the calendar after the initial resources have been displayed.
calendar.addResource( resource, [ scrollTo ] )
The resource argument should be an object with raw Resource properties properties. Example:
const calendar = new Calendar(calendarEl, {
// options
});
calendar.addResource({
id: 'e',
title: 'Room E'
}); If you would like the new resource to be a child of an existing resource, make sure to set its parentId. This method will return the parsed Resource with methods such as getEvents.
You may also specify an existing parsed Resource if it has previously been removed.
The scrollTo argument will scroll the current view to the newly added resource. It is optional and true by default. To disable this behavior, specify false.
View a demo that utilizes addResource.