closeSection

关闭当前活动视图中的指定 section。

void closeSection(string section_id);
section_idstring要关闭的 section 的标识符。

Available only in PRO Edition

Example

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");

Applicable views:Timeline 视图
Details

此功能仅包含在 PRO 版本中。

该方法需要启用 treetimeline 插件。

如果当前活动视图不是以“Tree”模式渲染的 Timeline,该方法将不会生效。

See also
返回顶部