본문으로 건너뛰기

resetLayout

Description

레이아웃 구성의 현재 값을 사용하여 Gantt 레이아웃을 재구성합니다

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

노트

이 메서드는 addTaskLayeraddLinkLayer 메서드를 통해 타임라인 영역에 추가된 사용자 정의 레이어를 제거합니다. 따라서 페이지에 사용자 정의 레이어가 표시되려면 gantt.resetLayout 메서드를 호출한 후에 이를 다시 정의해야 합니다.

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.