closeSection
Info
Dieses Feature ist nur in der PRO Edition verfügbar.
Description
Schließt einen bestimmten Abschnitt innerhalb der aktuell aktiven Ansicht.
closeSection: (section_id: string) => void
Parameters
section_id- (required) string - Die Kennung des Abschnitts, der geschlossen werden soll.
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
Hinweis
Die Methode erfordert, dass das treetimeline Plugin aktiviert ist.
Hinweis
Wenn die aktive Ansicht kein Timeline im 'Tree'-Modus ist, hat diese Methode keine Wirkung.
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.