본문으로 건너뛰기

onRowDragStart

Description

사용자가 그리드의 행을 수직으로 재정렬하기 위해 드래그하기 전에 발생합니다

onRowDragStart: (id: string | number, target: HTMLElement, e: Event) => boolean;

Parameters

  • id - (required) string | number - 그리드에서 사용자가 드래그하는 작업의 ID
  • target - (required) HTMLElement - 사용자가 드래그하는 작업의 HTML 요소
  • e - (required) Event - 네이티브 이벤트 객체

Returns

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

Example

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

Details

노트

이벤트는 왼쪽 그리드에서 마우스 포인터로 태스크를 이동할 때, order_branch 설정이 활성화된 경우에 트리거됩니다. 가지 순서 재정렬이 비활성화되어 있으면 이 이벤트는 호출되지 않습니다.

이 이벤트는 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.