跳到主要内容

onBeforeRowResizeEnd

Description

在行高度调整过程完成之前触发

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

Parameters

  • id - (required) number|string - 任务标识符
  • 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 版本引入