openSection
Description
在当前活动视图中打开特定的section(仅当活动视图为"Tree"模式的Timeline时生效;否则该方法将被忽略)
openSection: (section_id: string) => void
Parameters
section_id- (required) string - 要打开的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 view
Details
注释
该方法需要启用treetimeline插件。
Related API
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.