onBeforeRowResizeEnd

fires before resizing of the row height is completed

boolean onBeforeRowResizeEnd(number|string id,object item,number newHeight){ ... };

Parameters

idnumber|stringthe task id
itemobjectthe task object
newHeightnumberthe new height of the row

Returns

booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Example

gantt.attachEvent("onBeforeRowResizeEnd", function (id, item, newHeight) {
    gantt.message.hide(message);
    message = null;
    gantt.message(`<b>${item.text}</b> is now <b>${newHeight}px</b> height`);
    return true;
});

Related samples

See also
Change log

added in v7.1

Back to top