Перейти к основному содержимому

closeSection

к сведению

Эта функция доступна только в PRO-версии.

Description

Закрывает конкретный section внутри текущего активного view.

closeSection: (section_id: string) => void

Parameters

  • section_id - (required) string - Идентификатор section, который нужно закрыть.

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.closeSection("managers");

Applicable views: Timeline view

Details

примечание

Метод требует включенного плагина treetimeline.

примечание

Если активный view не является Timeline в режиме 'Tree', этот метод не окажет никакого эффекта.

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.