Zum Hauptinhalt springen

layout

Description

Legt das Layout-Objekt fest

layout: any

Example

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

gantt.init("gantt_here");

Details

Hinweis

Beachten Sie, dass Sie die Layout-Konfiguration vor der Gantt-Initialisierung festlegen sollten. Wenn Sie Änderungen am Layout vornehmen, müssen Sie es mit resetLayout() aktualisieren.

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.