getSubtaskDuration

프로젝트나 다른 작업 내에 중첩된 작업들의 총 지속 시간을 계산합니다.

number getSubtaskDuration( [string | number task_id] );
task_idstring | number작업 ID; 생략할 경우 기본값으로 root_id가 사용됩니다.
number중첩된 작업들의 총 지속 시간

Example

const formatter = gantt.ext.formatters.durationFormatter();
//전체 프로젝트의 duration
let duration = gantt.getSubtaskDuration();
 
console.log(formatter.format(duration));
 
//하위 프로젝트의 duration
duration = gantt.getSubtaskDates(1);
 
console.log(formatter.format(duration));

Details

이 메서드는 프로젝트나 다른 작업 내에 중첩된 모든 작업들의 총 지속 시간을 계산합니다.

project type 작업은 이 총합에서 제외된다는 점에 유의하세요.

반환되는 값은 구성에서 정의된 duration units 단위로 제공됩니다.

See also
Back to top