onGridResizeEnd

사용자가 그리드의 경계를 드래그하여 크기를 조정하는 작업을 마친 직후에 트리거됩니다

boolean onGridResizeEnd(number old_width,number new_width);
old_widthnumber크기 조정 전 그리드의 너비
new_widthnumber업데이트된 그리드의 너비
boolean이벤트의 기본 동작을 계속할지(true) 중단할지(false) 결정합니다

Available only in PRO Edition

Example

// false를 반환하면 크기 조정 작업이 취소됩니다
gantt.attachEvent("onGridResizeEnd", function(old_width, new_width){
    gantt.message.hide(message);
    message = null;
    gantt.message(`Grid의 너비가 이제 <b>${new_width}</b>px 입니다`);
    return true;
});

Related samples

Details

이 기능은 PRO 에디션에서만 사용할 수 있습니다.

이 이벤트는 차단할 수 있습니다. false를 반환하면 그리드 크기 조정이 중단됩니다.

See also
Back to top