Skip to main content

deleteCalendar

Description

Deletes a task calendar by its id

deleteCalendar: (id: string | number) => void

Parameters

  • id - (required) string | number - the id of the calendar

Example

// adding a calendar
gantt.addCalendar({
id:"custom",
worktime: {
hours: [8, 17],
days: [ 1, 1, 1, 1, 1, 1 ,1]
}
});

// deleting a calendar
gantt.deleteCalendar("custom");

Details

added in version 4.2