Skip to main content

onBeforeRowResizeEnd

Description

Fires before resizing of the row height is completed

onBeforeRowResizeEnd: (id: number | string, task: Task, newHeight: number) => boolean;

Parameters

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

Returns

  • result - (boolean) - defines whether the default action of the event will be triggered (true) or canceled (false)

Example

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

Change log

  • added in v7.1