Zum Hauptinhalt springen

onRowResize

Description

Wird ausgelöst, wenn der Benutzer den Rand der Zeile zieht, um die Zeilenhöhe anzupassen

onRowResize: (id: string | number, task: Task, currentHeight: number) => void;

Parameters

  • id - (erforderlich) string | number - die Task-ID
  • task - (erforderlich) Task - das Task-Objekt
  • currentHeight - (erforderlich) number - die aktuelle Höhe der Zeile

Example

gantt.attachEvent("onRowResize", function (id, task, currentHeight) {
gantt.message({
expire: -1,
text: `<b>${task.text}</b> ist jetzt <b>${currentHeight}px</b> hoch`
});
});

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.