I have some questions about gantt:
1.How to initialize the data, because you can't return a complete data in the background, you have to concatenate it in the front end, so you can't transport load url, is there any other way to add data in ngOninit?
transport: {
load: {
url: 'assets/data/launch-saas.json'
}
},
2.When I'm editing I need to submit requests to the back end, isn't it this way?
project: {
listeners: {
change({ store, action, records }) {
const { $name } = store.constructor;
console.log('store', $name)
// console.log('action', action)
console.log('records', records)
if (action === 'add') {
}
if (action === 'remove') {
}
}
},
// Let the Project know we want to use our own Task model with custom fields / methods
taskModelClass: Task,
transport: {
load: {
url: 'assets/data/launch-saas.json'
}
},
autoLoad: true,
// The State TrackingManager which the UndoRedo widget in the toolbar uses
stm: {
autoRecord: true
},
// This config enables responses validation and dumping of found errors to the browser console.
// It's meant to be used as a development stage helper only so please set it to false for production systems.
validateResponse: true
},
If so, how can I write angular httpClient requests here, since httpClient doesn't seem to work here, or is there another way to submit data to the back end?
3.When I've edited gantt, I want to see the full data committed to the backend, in which way