deleteCalendar

deletes a task calendar by its id

void deleteCalendar(string|number id);
idstring|numberthe 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

See also
Back to top