Skip to main content

closeSection

info

This functionality is available in the PRO edition only.

Description​

Closes the specified section in the currently active view

closeSection: (section_id: string) => void

Parameters​

  • section_id - (required) string - the section's 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.closeSection("managers");

Applicable views: Timeline view

Details​

note

The method requires the treetimeline plugin to be activated.

note

If the opened view isn't Timeline in the 'Tree' mode, the method will be ignored.

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.