멀티 태스크 선택
버전 3.2부터 라이브러리에는 여러 작업을 동시에 선택할 수 있는 multiselect 확장 기능이 포함되어 있습니다.

멀티 태스크 선택 활성화
작업에 대해 멀티 태스크 선택을 활성화하려면 gantt.plugins 메서드를 사용하여 활성화하세요:
<!DOCTYPE html>
<html>
<head>
<script src="codebase/dhtmlxgantt.js"></script>
<link href="codebase/dhtmlxgantt.css" rel="stylesheet">
</head>
<body>
gantt.plugins({ /*!*/
multiselect: true /*!*/
}); /*!*/
//your code will be here
</body>
</html>
Multiselection and Indent/Outdent tasks
활성화하면 멀티 태스크 선택 기능이 자동으로 적용됩니다.
이 확장 기능을 비활성화하려면 multiselect 옵션을 사용하세요: Disabling multi-task selection
gantt.config.multiselect = false;
여러 작업을 한 번에 수정하기
여러 작업이나 링크를 동시에 수정하려면 batchUpdate 메서드를 사용하세요:
gantt.batchUpdate(function () {
var tasks = gantt.getTaskByTime();
for(var i = 0; i < tasks.length; i++){
var task = tasks[i];
task.start_date = gantt.date.add(task.start_date, 1, "day");
task.end_date = gantt.calculateEndDate(task.start_date, task.duration);
gantt.updateTask(task.id);
}
});
이 메서드를 사용하면 여러 작업이나 링크를 한 번의 렌더링으로 일괄 업데이트할 수 있으므로, 여러 번의 업데이트로 인한 반복 렌더링을 방지할 수 있습니다.
Multiselection and Indent/Outdent tasks