api.getResourceCalendar()
PRO
The functionality is available in PRO Edition only
Description
Returns the calendar of a resourceUsage
api.getResourceCalendar(resource: IResource): ICalendar | undefined;
Parameters
resource— (required) a resource object from theresourcesarray
Returns
The calendar set in the calendar field of the resource. If the field is not set or the calendar is not found in the calendars registry, the method returns the global calendar, or undefined if there is no global calendar.
Example
const resource = api.getResource(5);
const calendar = api.getResourceCalendar(resource);
Related articles: