onBeforeRowResize
Description
在用户开始通过拖拽调整行高之前触发
onBeforeRowResize: (task: Task) => boolean;
Parameters
task- (required) Task - 任务对象
Returns
param- (boolean) - 定义事件的默认操作是否会被触发(true)或取消(false)
Example
gantt.attachEvent("onBeforeRowResize", function (task) {
gantt.message(`Start resizing <b>${task.text}</b>`);
return true;
});
Related samples
Details
该事件是可阻塞的。返回 false 将阻止行高被调整。
Related API
Change log
- 新增于 v7.1
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.