Premium support for our pure JavaScript UI components


Post by fdyrs »

Hi,

I would like to catch and only store the direct changes that the user does (and not all the follow changes caused by the schedule enigne). So the changes on the taskStore, before the schedule engine runs anything. What would be the simplest/best way to filter out those changes?

I know I could in the change events analyse the "changes parameter" to figure it out. For example if a duration changes, i know it is a direct change from the user (except when it is a parent task that is auto scheduled). Is that maybe the only way? And if so, do you have any improvement plans on this?

Thank you :)


Post by tasnim »

You can try this https://bryntum.com/docs/gantt/api/Gantt/data/TaskStore#event-change.

Here is an example of how you can use it :

gantt.taskStore.on('change', () => console.log('change'));

Post Reply