Zum Hauptinhalt springen

onBeforeRowResizeEnd

Description

Wird ausgelöst, bevor das Ändern der Zeilenhöhe abgeschlossen ist

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

Parameters

  • id - (required) number | string - die Task-ID
  • task - (required) Task - das Task-Objekt
  • newHeight - (required) number - die neue Höhe der Zeile

Returns

  • result - (boolean) - bestimmt, ob die Standardaktion des Events ausgelöst wird (true) oder abgebrochen wird (false)

Example

gantt.attachEvent("onBeforeRowResizeEnd", function (id, task, newHeight) {
gantt.message(`<b>${task.text}</b> hat jetzt eine Höhe von <b>${newHeight}px</b>`);
return true;
});

Change log

  • hinzugefügt 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.