onAfterRowResize

在行高度调整完成后触发

void onAfterRowResize(string|number id,Task task,number oldHeight,number newHeight);
idstring|number任务的ID
taskTask任务对象
oldHeightnumber调整前的行高度
newHeightnumber调整后的行高度

Example

gantt.attachEvent("onAfterRowResize", function (id, task, oldHeight, newHeight) {
    gantt.message(`<b>${item.text}</b> 的高度原为 <b>${oldHeight}px</b><br>
    <b>${item.text}</b> 现在的高度是 <b>${newHeight}px</b>`);
});

Related samples

See also
Change log

在 v7.1 版本中添加

Back to top