跳到主要内容

clearAll

Description

从甘特图中移除所有任务及附加元素(包括标记)

clearAll: () => void

Example

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

gantt.clearAll(); /*!*/
gantt.load("url2");/*!*/

Details

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

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.