Skip to main content

onRowResize

Description

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

onRowResize: (id: string | number, task: Task, currentHeight: number) => void;

Parameters

  • id - (required) string | number - the task id
  • task - (required) Task - the task object
  • currentHeight - (required) number - the 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`
});
});

Change log

  • added in v7.1