在当前活动视图中打开特定的section(仅当活动视图为“Tree”模式的Timeline时生效;否则该方法将被忽略)
section_id | string | 要打开的section的id |
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");
该方法需要启用treetimeline插件。
该方法仅适用于Tree模式。