onAfterTaskMove

작업이 새로운 세로 위치로 이동된 직후에 트리거됩니다.

void onAfterTaskMove(string|number id,string|number parent,number tindex);
idstring|number이동된 작업의 ID
parentstring|number새로운 부모의 ID
tindexnumber부모 브랜치 내에서의 새로운 위치 인덱스

Example

// 다른 하위 브랜치로 이동하는 것을 방지
gantt.attachEvent("onAfterTaskMove", function(id, parent, tindex){
    // 여기에 커스텀 로직 작성
});

Details

이 이벤트는 두 가지 상황에서 발생한다는 점을 유의하세요:

  1. moveTask 메서드가 호출될 때
  2. 옵션 order_branch가 기본 설정(gantt.config.order_branch = true;)으로 활성화되어 있고 사용자가 작업을 드래그할 때
See also
Back to top