본문으로 건너뛰기

layout

Description

레이아웃 객체를 정의합니다.

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

노트

Gantt 차트를 초기화하기 전에 layout 설정을 해야 합니다. 나중에 layout을 업데이트할 경우, resetLayout를 사용하여 반드시 레이아웃을 새로 고쳐야 합니다.