Hi,
We have a use case with a parent task having children tasks. The user shall be able to rearange the order of the children but it shall not be possible to drag them outside the parent.
So we need a listener that returns either true or false if the drop is allowed. Below is an example but we cannot find the event name in the documentation.
//listener - beforeTaskDropFinalize is only trigging if start data change
this.gantt.on('WHAT SHOULD WE ADD', (event: any) => {
const { context } = event;
console.log(context);
});
Regards
Johan