deleteSection
к сведению
Эта функция доступна только в PRO-версии.
Description
Удаляет секцию из текущего активного вида
deleteSection: (section_id: string) => boolean
Parameters
section_id- (required) string - идентификатор секции
Returns
isSuccess- (boolean) - возвращает true, если секция была успешно удалена, false в противном случае (например, если ID секции некорректен).
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");
Applicable views: 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.