The onTaskResized event handler fires when the user finishes drag and drop task box resizing in the Gantt Chart, after the default action specified by taskResizeHandling.
Declaration
DayPilot.Gantt.onTaskResized(args)Parameters
args.task- DayPilot.Task object representing the task.args.newStart(DayPilot.Date) - new task start.args.newEnd(DayPilot.Date) - new task end.
Examples
JavaScript
const gantt = new DayPilot.Gantt("dp", {
taskResizeHandling: "Update",
onTaskResized: (args) => {
DayPilot.Modal.alert("Resized: " + args.task.text());
},
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
taskResizeHandling: "Update",
onTaskResized: args => {
DayPilot.Modal.alert("Resized: " + args.task.text());
},
// ...
};React
<DayPilotGantt
taskResizeHandling="Update"
onTaskResized={onTaskResized}
{/* ... */}
/>const onTaskResized = (args) => {
DayPilot.Modal.alert("Resized: " + args.task.text());
};Vue
<DayPilotGantt
taskResizeHandling="Update"
@taskResized="onTaskResized"
<!-- ... -->
/>const onTaskResized = (args) => {
DayPilot.Modal.alert("Resized: " + args.task.text());
};See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot