onRowResize

当用户拖动行边界以更改其高度时触发

void onRowResize(string|number id,Task task,number currentHeight);
idstring|number任务的ID
taskTask任务对象
currentHeightnumber当前行的高度

Example

gantt.attachEvent("onRowResize", function (id, task, currentHeight) {
    gantt.message({
        expire: -1,
        text: `<b>${task.text}</b> 现在高度为 <b>${currentHeight}px</b>`
    });
});

Related samples

See also
Change log

在v7.1版本中添加

Back to top