본문으로 건너뛰기

getTotalSlack

정보

이 기능은 PRO 에디션에서만 사용할 수 있습니다.

Description

작업의 총 여유 시간을 반환합니다

getTotalSlack: (task?: Task | string | number) => any

Parameters

  • task- (optional) Task | string | number - 선택적이며, 작업 객체 또는 해당 ID

Returns

  • total_slack - (number | object) - 작업의 총 여유 시간 또는, 만약 task 매개변수가 지정되지 않으면, 각 작업의 ID를 키로 하고 해당 작업의 총 여유 시간을 값으로 하는 객체

Example

var task = gantt.getTask(7);
gantt.getTotalSlack(task);

gantt.getTotalSlack(7);

Details

노트

이 메서드는 critical_path 확장에서 정의되어 있으므로, critical_path 플러그인을 gantt.plugins 메서드를 사용해 활성화해야 합니다. 자세한 내용은 Critical Path 문서를 참조하십시오.

총 여유 시간은 작업의 지속 기간을 늘리거나 타임라인에서 해당 작업을 이동시키되 전체 프로젝트의 종료 시점에 영향을 주지 않는 데 사용할 수 있는 시간의 기간입니다.

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.