본문으로 건너뛰기

onBeforeAutoSchedule

정보

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

Description

자동 스케줄링 이전에 트리거됩니다

onBeforeAutoSchedule: (taskId: string | number) => boolean;

Parameters

  • taskId - (required) string | number - 루트 태스크 ID

Returns

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

Example

gantt.attachEvent("onBeforeAutoSchedule",function(taskId){
// 여기에 코드 작성
return true;
});

Details

노트

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

이벤트은 차단 가능합니다. false를 반환하면 추가 처리가 취소됩니다.

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.