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;
});
Related samples
Details
노트
이 이벤트는 auto_scheduling 확장의 일부이므로, auto_scheduling 플러그인이 활성화되어 있는지 확인하세요. 자세한 내용은 자동 스케줄링 문서를 참고하세요.
이 이벤트는 차단할 수 있습니다. false를 반환하면 추가 처리가 중단됩니다.
Related API
- auto_scheduling
- auto_scheduling_descendant_links
- auto_scheduling_initial
- auto_scheduling_move_projects
- auto_scheduling_project_constraint
- auto_scheduling_strict
- auto_scheduling_use_progress
- findCycles
- isCircularLink
- onAfterAutoSchedule
- onAfterTaskAutoSchedule
- onBeforeTaskAutoSchedule
- onCircularLinkError
- onAutoScheduleCircularLink
Related Guides
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.