跳到主要内容

onBeforeRowResizeEnd

Description

在行高调整完成之前触发

onBeforeRowResizeEnd: (id: number | string, task: Task, newHeight: number) => boolean;

Parameters

  • id - (required) number | string - 任务 ID
  • task - (required) Task - 任务对象
  • newHeight - (required) number - 行的新高度

Returns

  • result - (boolean) - 定义事件的默认操作是否会被触发(true)或取消(false

Example

gantt.attachEvent("onBeforeRowResizeEnd", function (id, task, newHeight) {
gantt.message(`<b>${task.text}</b> 当前高度为 <b>${newHeight}px</b>`);
return true;
});

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.