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
노트
이 메서드는 addTaskLayer 및 addLinkLayer 메서드를 사용하여 타임라인 영역에 추가된 사용자 정의 레이어를 모두 제거합니다. 따라서 gantt.resetLayout 호출 후에는 이러한 사용자 정의 레이어를 다시 설정하여 페이지에 표시되도록 해야 합니다.
Related API
Related Guides
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.