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

openSection

Description

Открывает определённый section внутри текущего активного view (работает только если активный view - Timeline в режиме 'Tree'; в противном случае метод игнорируется)

openSection: (section_id: string) => void

Parameters

  • section_id - (required) string - id секции, которую необходимо открыть

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

Applicable views: Timeline view

Details

примечание

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

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.