Premium support for our pure JavaScript UI components


Post by galb@control.site »

Hi
im changing and updating the next example -
https://bryntum.com/products/gantt/examples/advanced/

after my changes and updates, how can i console log the current json? in the structure of

{
"success": true,
"project": { .... },
"calendars": {....},
"tasks": {...},
"dependencies": { ...},
"resources": {...},
"assignments": {...},
"timeRanges": {..}
}

Post by mats »

You can get the changes with:

gantt.project.changes

Post by galb@control.site »

Hi Mats
this is not what im looking for -

gantt.project.changes

return it as

{
"tasks": { 
added: [...], 
updated: [...]
}

i want it in this structure, in this way i can build a json and load it to my client

{
"success": true,
"project": { .... },
"calendars": {....},
"tasks": {...},
"dependencies": { ...},
"resources": {...},
"assignments": {...},
"timeRanges": {..}
}

Post by tasnim »

Hi,

If I understood correctly, you're looking for this https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-json?

Screenshot 2024-02-21 162915.png
Screenshot 2024-02-21 162915.png (187.92 KiB) Viewed 104 times

Post Reply