Our state of the art Gantt chart


Post by greg »

I have a bryntum Gantt with inline data:

<BryntumGantt
        tasks={tasks}
        ...

I would like to add a undo/redo functionality to it, but following the documentation where adding a stm to project is advised, doesn't work:

project: {
    stm: {
      autoRecord: true,
    },
  },

I'm getting this error:

Providing both project and inline data is not supported

Is there a way I can add STM to my app without changing the setup I have?

Thanks


Post by alex.l »

you can set inline data using project's properties. Please see https://bryntum.com/docs/gantt/api/Gantt/model/ProjectModel#config-tasksData

All the best,
Alex


Post Reply