getSection
信息
此功能仅在 PRO 版本中可用。
Description
获取当前活动视图中特定 section 的对象
getSection: (section_id: string) => any
Parameters
section_id- (required) string - section 的标识符
Returns
section- (object) - section 对象
Example
scheduler.createTimelineView({
name: "timeline",
render:"tree",
...
y_unit:[
{key:"managers", label:"Administration"},
{key:"accounts", label:"Accounting Department"},
{key:"sales", label:"Sales and Marketing"},
{key:"production", label:"Production Department"}
]
});
...
scheduler.getSection("sales");//->{key:"sales",label:"Sales and Marketing"}
Applicable views: Timeline view
Details
注释
此方法仅在启用 treetimeline 插件时有效。
注释
如果当前视图不是"Tree"模式的 Timeline, 此方法将无效。
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.