onGridResize

사용자가 그리드의 경계를 드래그하여 크기를 조절할 때 발생합니다

void onGridResize(number old_width,number new_width);
old_widthnumber크기 조절 전 그리드의 너비
new_widthnumber크기 조절 후 그리드의 너비

Available only in PRO Edition

Example

gantt.attachEvent("onGridResize", function(old_width, new_width){
    if(!message){
        message = gantt.message({expire:-1,
        text:"Grid is now <b id='width_placeholder'></b><b>px</b> width"});
    }
    document.getElementById("width_placeholder").innerText = new_width;
});

Related samples

Details

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

See also
Back to top