본문으로 건너뛰기

onBeforeTaskAdd

Description

Gantt 차트에 새 작업이 추가되기 전에 발생합니다

onBeforeTaskAdd: (id: string | number, task: Task) => boolean;

Parameters

  • id - (required) string | number - 작업 ID
  • task - (required) Task - 작업 객체

Returns

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

Example

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

Details

이벤트는 차단이 가능합니다. 태스크 추가를 취소하려면 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.