Перейти к основному содержимому

onBeforeRowResizeEnd

Description

Срабатывает до завершения изменения высоты строки

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

Parameters

  • id - (required) number | string - идентификатор задачи
  • task - (required) Task - объект задачи
  • newHeight - (required) number - новая высота строки

Returns

  • result - (boolean) - определяет, будет ли выполнено действие по умолчанию события (true) или отменено (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
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.