openSection

在当前活动视图中打开特定的section(仅当活动视图为“Tree”模式的Timeline时生效;否则该方法将被忽略)

void openSection(string section_id);
section_idstring要打开的section的id

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.openSection("managers");

Applicable views:Timeline 视图
Details

该方法需要启用treetimeline插件。

该方法仅适用于Tree模式。

See also
返回顶部