跳转到主要内容

deleteAllSections

信息

此功能仅在 PRO 版本中可用。

Description

从当前活动视图中移除所有 section

deleteAllSections: () => void

Example

scheduler.createTimelineView({
name: "timeline",
render:"tree",
...
y_unit:[
{key:"managers", label:"管理部门"},
{key:"accounts", label:"财务部门"},
{key:"sales", label:"销售和市场部"},
{key:"production", label:"生产部门"}
]
});
...
scheduler.deleteAllSections();

Applicable views: Timeline view

Details

注释

该方法需要激活 treetimeline 插件。

注释

如果当前视图不是使用"Tree"渲染的 Timeline,该方法将无效。

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.