openSection
Description
Öffnet einen bestimmten Abschnitt innerhalb der aktuell aktiven Ansicht (funktioniert nur, wenn die aktive Ansicht eine Timeline im 'Tree'-Modus ist; andernfalls wird die Methode ignoriert)
openSection: (section_id: string) => void
Parameters
section_id- (required) string - die ID des zu öffnenden Abschnitts
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:"Buchhaltungsabteilung", children: [
{key:3, label:"David Miller"},
{key:4, label:"Linda Brown"}
]},
{key:"sales", label:"Vertrieb und Marketing"},
{key:"production", label:"Produktionsabteilung"}
]
});
...
scheduler.openSection("managers");
Applicable views: Timeline view
Details
Hinweis
Die Methode erfordert, dass das treetimeline Plugin aktiviert ist.
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.