Our state of the art Gantt chart


Post by ChesterHsu »

excuse me. i want to ask one thing after finishing setting gantt, how can i get the value after changing? are there any examples that i can refer to?


Post by mats »

Please read intro here: https://bryntum.com/docs/gantt/#Gantt/model/ProjectModel

Getting changed records
You can access the changes in the current Project dataset anytime using the changes property. It returns an object with all changes:

const changes = project.changes;

console.log(changes);

{
  tasks : {
      updated : [{
          name : 'My task',
          id   : 12
      }]
  },
  assignments : {
      added : [{
          event      : 12,
          resource   : 7,
          units      : 100,
          $PhantomId : 'abc123'
      }]
    }
};

Post Reply