onRowResize
Description
当用户拖动行边界以更改其高度时触发
onRowResize: (id: string | number, task: Task, currentHeight: number) => void;
Parameters
id- (required) string|number - 任务的IDtask- (required) Task - 任务对象currentHeight- (required) number - 当前行的高度
Example
gantt.attachEvent("onRowResize", function (id, task, currentHeight) {
gantt.message({
expire: -1,
text: `<b>${task.text}</b> 现在高度为 <b>${currentHeight}px</b>`
});
});
Related samples
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.