关闭当前活动视图中的指定 section。
section_id | string | 要关闭的 section 的标识符。 |
Available only in PRO Edition
scheduler.createTimelineView({
name:"timeline",
render:"tree",
...
y_unit:[
{key:"managers", label:"Administration", children: [
{key:1, label:"James Smith"},
{key:2, label:"John Williams"}
]},
{key:"accounts", label:"Accounting Department", children: [
{key:3, label:"David Miller"},
{key:4, label:"Linda Brown"}
]},
{key:"sales", label:"Sales and Marketing"},
{key:"production", label:"Production Department"}
]
});
...
scheduler.closeSection("managers");
此功能仅包含在 PRO 版本中。
该方法需要启用 treetimeline 插件。
如果当前活动视图不是以“Tree”模式渲染的 Timeline,该方法将不会生效。