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 idtask- (required) Task - the task objectcurrentHeight- (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`
});
});
Related samples
Related API
Change log
- added in v7.1