Zum Hauptinhalt springen

resetLayout

Description

Baut das Gantt-Layout anhand des aktuellen Werts der Layout-Konfiguration neu

resetLayout: () => void

Example

gantt.init("gantt_here");

gantt.config.layout = {
css: "gantt_container",
rows: [
{
cols: [
{view: "grid", scrollX: "scrollHor", scrollY: "scrollVer"},
{resizer: true, width: 1},
{view: "timeline", scrollX: "scrollHor", scrollY: "scrollVer"},
{view: "scrollbar", id: "scrollVer"}
]
},
{view: "scrollbar", id: "scrollHor", height: 20}
]
};

gantt.resetLayout();

Details

Hinweis

Diese Methode entfernt benutzerdefinierte Layer, die dem Timeline-Bereich über die Methoden addTaskLayer und addLinkLayer hinzugefügt wurden. Daher müssen Sie diese nach dem Aufruf der Methode gantt.resetLayout neu definieren, damit benutzerdefinierte Layer auf der Seite angezeigt werden.

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.