onGridResizeEnd

用户拖动grid边界调整大小后立即触发的事件

boolean onGridResizeEnd(number old_width,number new_width);
old_widthnumbergrid调整前的宽度
new_widthnumbergrid调整后的新宽度
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将阻止grid调整大小。

See also
Back to top