onRowResize

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

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

Example

gantt.attachEvent("onRowResize", function (id, item, currentHeight) {
    if (!message) {
        message = gantt.message({
            expire: -1,
            text: `<b>${item.text}</b> is now <b id='height_placeholder'></b>
<b>px</b> height`
        });
    }
    document.getElementById("height_placeholder").innerText = currentHeight;
});

Related samples

See also
Change log

added in v7.1

Back to top