Our state of the art Gantt chart


Post by bhavadharanisure »

Hi team,
Given project like below:

<BryntumProjectModel
        {...projectConfig}
        ref={project}
        tasks={tasks}
      />
      <BryntumGantt
        ref={gantt}
        project={project}
        {...ganttConfig}
      />

and given ganttconfig like below:

{
listeners:{
update:(event)=>{
console.log(event)
}
}
}

Update event is not triggering when the values modified for taskStore


Post by alex.l »

If you want to subscribe on taskStore's events, you need to add listeners to taskStore

As example, in ganttConfig.js

project : {
    taskStore : {
       // ...
       listeners : {
           update : () => console.log('updated')
       }
    }
}

https://bryntum.com/products/gantt/docs/api/Gantt/data/TaskStore#event-update

All the best,
Alex


Post Reply