본문으로 건너뛰기

onLightboxDelete

Description​

사용자가 라이트박스의 'Delete' 버튼을 클릭할 때 발생합니다

onLightboxDelete: (id: string | number) => boolean;

Parameters​

  • id - (필수) string | number - 라이트박스에서 열려 있는 작업의 ID

Returns​

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

Example​

gantt.attachEvent("onLightboxDelete", function(id){
const task = gantt.getTask(id);
if (task.duration > 60){
alert("The duration is too long. Please, try again");
return false;
}
return true;
})

Details​

이벤트는 차단 가능합니다. 'delete' 작업을 취소하고 라이트박스를 열어 두려면 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.