getSection
info
This functionality is available in the PRO edition only.
Description
Gets the object of the specified section in the currently active view
getSection: (section_id: string) => any
Parameters
section_id- (required) string - the section's id
Returns
section- (object) - the section object
Example
scheduler.createTimelineView({
name: "timeline",
render:"tree",
...
y_unit:[
{key:"managers", label:"Administration"},
{key:"accounts", label:"Accounting Department"},
{key:"sales", label:"Sales and Marketing"},
{key:"production", label:"Production Department"}
]
});
...
scheduler.getSection("sales");//->{key:"sales",label:"Sales and Marketing"}
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.
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.