跳到主要内容

deleteCalendar

Description

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

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

Parameters

  • id - (required) string | 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 引入