getSection

获取当前活动视图中特定 section 的对象

object getSection(string section_id);
section_idstringsection 的标识符
objectsection 对象

Available only in PRO Edition

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 视图
Details

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

此方法仅在启用 treetimeline 插件时有效。

如果当前视图不是“Tree”模式的 Timeline,此方法将无效。

See also
返回顶部