JQuery 라이브러리를 사용할 때, Gantt 차트는 익숙한 문법을 사용하여 페이지에 추가할 수 있습니다.
아래는 JQuery로 Gantt 차트를 기본적으로 설정하는 방법입니다:
JQuery로 초기화된 Gantt 차트
$(".mygantt").dhx_gantt({
data:demo_tasks,
scales:[
{ unit:"year",step:1,format:"%Y"}
]
});
$("#gantt1").dhx_gantt().parse(tasksA);
<div class="mygantt" id='gantt1' style='width:100%; height:30%;'></div>
Related sample: jQuery integration
상세 설명:
jQuery를 통해 초기화된 Gantt 차트는 JavaScript로 직접 생성한 경우와 동일한 구성 옵션과 API를 사용합니다.
Related sample: jQuery integration
Back to top