onGridResizeStart
信息
此功能仅在PRO版本中可用。
Description
在用户开始拖动网格边框以调整网格大小之前触发
onGridResizeStart: (old_width: number) => boolean;
Parameters
old_width- (required) number - 初始网格宽度
Returns
result- (boolean) - 定义事件的默认操作是否将被触发(true)或取消(false)
Example
// 返回false以取消调整大小操作
gantt.attachEvent("onGridResizeStart", function(old_width){
gantt.message("Start grid resizing");
return true;
});
Related samples
Details
该事件是可阻塞的。返回 false 将不允许网格调整大小。
Related API
Related Guides
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.