跳到主要内容

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.