onGridResize

当用户拖动grid边框调整其大小时触发

void onGridResize(number old_width,number new_width);
old_widthnumber调整大小前grid的宽度
new_widthnumber调整大小后grid的宽度

Available only in PRO Edition

Example

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

Related samples

Details

此功能仅在PRO版本中可用。

See also
Back to top