isCriticalTask

주어진 작업이 크리티컬한지 확인합니다

boolean isCriticalTask(Task task);
taskTask확인할 작업 객체
boolean작업이 크리티컬한 경우 'true'를 반환하며, 그렇지 않으면 'false'를 반환합니다.

Available only in PRO Edition

Example

const tasks = {
    data:[
       {id:1, text:"Project #1", start_date:"01-04-2023", duration:18, type:"project"},
       {id:2, text:"Task #1", start_date:"02-04-2023", duration:8, parent:1},
       {id:3, text:"Task #2", start_date:"13-04-2023", duration:8, parent:1}
    ],
    links:[
       {id:1, source:1, target:2, type:"1"},
       {id:2, source:2, target:3, type:"0"}
    ]
};
 
gantt.config.highlight_critical_path = true; gantt.init("gantt_here");
gantt.parse(tasks);
 
gantt.isCriticalTask(gantt.getTask(2));// ->'false' gantt.isCriticalTask(gantt.getTask(3));// ->'true'

Related samples

Details

이 기능은 PRO 에디션에서만 제공됩니다.

이 메서드는 critical_path 확장 기능의 일부이므로 critical_path 플러그인을 활성화해야 합니다. 자세한 내용은 Critical Path 문서를 참조하세요.

See also
Back to top