본문으로 건너뛰기

onBeforeRowResize

Description

사용자가 드래그 앤 드롭으로 행 높이 조정 시작하기 전에 발생합니다

onBeforeRowResize: (task: Task) => boolean;

Parameters

  • task - (required) Task - 작업 객체

Returns

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

Example

gantt.attachEvent("onBeforeRowResize", function (task) {
gantt.message(`Start resizing <b>${task.text}</b>`);
return true;
});

Details

이벤트는 차단 가능합니다. false를 반환하면 행 높이가 조정되지 않습니다.

Change log

  • v7.1에서 추가됨
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.