Skip to main content

onAfterRowResize

Description

Fires after resizing of the row height is finished

onAfterRowResize: (id: string | number, task: Task, oldHeight: number, newHeight: number) => void;

Parameters

  • id - (required) string | number - the task id
  • task - (required) Task - the item object
  • oldHeight - (required) number - the old height of the row
  • newHeight - (required) number - the new height of the row

Example

gantt.attachEvent("onAfterRowResize", function (id, task, oldHeight, newHeight) {
gantt.message(`<b>${item.text}</b> was <b>${oldHeight}px</b> height.<br/>
<b>${item.text}</b> is now <b>${newHeight}px</b> height`);
});

Change log

  • added in v7.1