onRowResize

fires when the user is dragging the border of the row to resize the row height

void onRowResize(string|number id,Task task,number currentHeight);
idstring|numberthe task id
taskTaskthe task object
currentHeightnumberthe current height of the row

Example

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

Related samples

See also
Change log

added in v7.1

Back to top