Hi,
A task that is dragged before the project start date is automatically reverted back. We want to notify the user on the reason. Below are links to information on how this is done but the callback is never triggered in the angular example inline-data or advanced.
https://github.com/bryntum/support/issues/2766
https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#event-schedulingConflict
//inline-data app.component.html adding #gantt
<bryntum-gantt
#gantt
[project] = "project"
[columnLines] = "ganttConfig.columnLines!"
[columns] = "ganttConfig.columns!"
[subGridConfigs] = "ganttConfig.subGridConfigs!"
[viewPreset] = "ganttConfig.viewPreset!"
[timeRangesFeature] = "ganttConfig.features!.timeRanges!"
</bryntum-gantt>
//inline-data app.component.ts adding listener with timeout to make sure project is loaded
ngOnInit(): void {
// Get initial data
Object.assign(this, this.dataService.getData());
setTimeout(() => {
this.ganttComponent.instance.project.on('schedulingconflict', (context:any) => {
console.log("conflict");
});
},1000);
}
Regards
Johan