1: I'm getting the data which is changing when I change dependency or and task store value How can I get the whole new changed data object? I have to save it as json or can I pass the same changed object to the backend so that it updates the new data in db.
How can I do it please let me know Thank you.
2: How to auto update this data and also when to use commitAsync etc and these autoLoad autoUpdate cmds can be useful in this case?
This is the code:
const gantt = new Gantt({
appendTo : 'gantt_chart',
project : {
taskModelClass : Task,
taskStore : {
listeners : {
change : (data) => {
console.log('data1234 Task Store', data, data.changes)
}
}
},
dependencyStore : {
listeners : {
change : (data) => {
console.log('data1234 Dependency Store', data, data.changes);
}
}
}
},
});