onBeforeRowResize
Description
Fires before the user starts to resize the row height by drag-and-drop
onBeforeRowResize: (task: Task) => boolean;
Parameters
task- (required) Task - the task object
Returns
param- (boolean) - defines whether the default action of the event will be triggered (true) or canceled (false)
Example
gantt.attachEvent("onBeforeRowResize", function (task) {
gantt.message(`Start resizing <b>${task.text}</b>`);
return true;
});
Related samples
Details
The event is blockable. Returning false will prevent the row height from being resized.
Related API
Change log
- added in v7.1