clearAll

从甘特图中移除所有任务和额外元素(如标记)

void clearAll();

Example

// 重新加载甘特图中的数据
gantt.load("url1");
 
gantt.clearAll(); gantt.load("url2");

Details

请注意,该方法会触发 onClear 事件。

See also
Back to top