onBeforeTaskDelete

사용자가 작업을 삭제하기 직전에 트리거됩니다.

boolean onBeforeTaskDelete(string|number id,Task task);
idstring|number작업 ID
taskTask작업 객체
boolean기본 이벤트 동작이 진행될지(true) 중단될지(false) 결정합니다.

Example

gantt.attachEvent("onBeforeTaskDelete", function(id,task){
    // 여기서 커스텀 로직을 추가할 수 있습니다.
    return true;
});

Details

이 이벤트는 차단할 수 있습니다. false를 반환하면 작업 삭제가 방지됩니다.

See also
Back to top