deleteCalendar

使用日历的 id 删除任务日历

void deleteCalendar(string | number id);
idstring | number日历的 id

Example

// 添加日历
gantt.addCalendar({
    id:"custom",
    worktime: {
        hours: [8, 17],
        days: [ 1, 1, 1, 1, 1, 1 ,1]
    }
});
 
// 删除日历
gantt.deleteCalendar("custom");

Details

版本 4.2 引入

See also
Back to top