onBeforeTaskDrag

사용자가 마우스 버튼을 누르고 드래그를 시작한 직후, dhtmlxGantt가 드래그 앤 드롭 프로세스를 시작하기 전에 발생합니다.

boolean onBeforeTaskDrag(string|number id,string mode,Event e);
idstring|number작업 ID
modestring드래그 앤 드롭 모드 ("resize", "progress", "move", "ignore")
eEvent네이티브 이벤트 객체
boolean기본 이벤트 동작이 진행될지(true) 또는 차단될지(false) 결정합니다.

Example

gantt.attachEvent("onBeforeTaskDrag", function(id, mode, e){
    //여기에 커스텀 로직 작성
    return true;
});

Related samples

Details

이 이벤트는 타임라인 내에서 작업이 드래그될 때 발생합니다.

false를 반환하면 이벤트가 차단되어 작업이 원래 위치로 리셋됩니다.

See also
Back to top