跳到主要内容

onRowResize

Description

当用户拖动行边框以调整行高时触发

onRowResize: (id: string | number, task: Task, currentHeight: number) => void;

Parameters

  • id - (required) string | number - 任务 ID
  • task - (required) Task - 任务对象
  • currentHeight - (required) number - 该行当前高度

Example

gantt.attachEvent("onRowResize", function (id, task, currentHeight) {
gantt.message({
expire: -1,
text: `<b>${task.text}</b> is now <b>${currentHeight}px</b> height`
});
});

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.