본문으로 건너뛰기

onBeforeTaskAutoSchedule

정보

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

Description

재스케줄링되는 각 작업에 대해 발생합니다

onBeforeTaskAutoSchedule: (task: Task, start: Date, link: Link, predecessor: Task) => boolean;

Parameters

  • task - (required) Task - 작업 객체
  • start - (required) Date - 새로운 시작 날짜
  • link - (required) Link - 제약 조건을 생성하는 링크 객체
  • predecessor - (required) Task - 선행 작업 객체

Returns

  • result - (boolean) - 이벤트의 기본 동작이 트리거될지 여부를 정의합니다 (true) 또는 취소됩니다 (false)

Example

gantt.attachEvent("onBeforeTaskAutoSchedule",function(task, start, link, predecessor){
// 여기에 코드 작성
return true;
});

Details

노트

이벤트는 auto_scheduling 확장에 정의되어 있으므로 auto_scheduling 플러그인을 활성화해야 합니다. 자세한 내용은 자동 스케줄링 기사에서 확인하십시오.

The event is blockable. Returning false will cancel further processing.

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.