I cannot understand how to fetch the new date (start and end) when I update a task.
Imagine a task has 2 weeks for duration. If I move the right side 1 week more I should get the end date (so that I can persist on the backend)
const init = (api: {
exec(arg0: string, arg1: (ev: any) => void): unknown; on: (arg0: string, arg1: (ev: any) => void) => void;
}) => {
api.on("drag-task", ev => {
console.log("The id of the dragged task:", ev.id);
});
};
I am doing this But I can only get the ID of the task I moved. I need to have the new dates.
Thanks