deleteSection
к сведению
Эта функция доступна только в PRO-версии.
Description
Удаляет раздел из текущего активного вида
deleteSection: (section_id: string) => boolean
Parameters
section_id- (обязательно) string - идентификатор раздела
Returns
isSuccess- (boolean) - возвращает true, если раздел был удалён успешно и false в других случаях (например, если указан неверный раздел).
Example
scheduler.createTimelineView({
name: "timeline",
render:"tree",
...
y_unit:[
{key:"production", label:"Production Department", children:[
{key:"p1", label:"Managers", children:[
{key:"pm1", label:"John Williams"},
{key:"pm2", label:"David Miller"}
]}
]},
{key:"sales", label:"Sales and Marketing", children:[
{key:"s1", label:"Kate Moss"},
{key:"s2", label:"Dian Fossey"}
]}
]
});
...
scheduler.deleteSection("sales");
Доступные представления: Timeline view
Details
примечание
Метод требует активированного плагина treetimeline.
примечание
Если открытое представление не Timeline в режиме 'Tree', метод будет проигнорирован.
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.