Our state of the art Gantt chart


Post by aneventchin »

Hello, when I disable the dependencies

const ganttConfig = {
...
features: {
	dependencies: false,
	...
	}
}

I get this error in the console ->

Uncaught (in promise) TypeError: Cannot read property 'startArrowMargin' of undefined

I also noticed this warning ->

BryntumGanttComponent development warning!
Using "features" parameter for configuration is not recommended.
Solution: Use separate parameter for each "features" value to enable reactive updates of the API instance Please check integration guide: https://www.bryntum.com/docs/gantt-vanilla/#guides/integration/react.md 

The link goes to 404, not found. And that is the way that is shown in the documentation. (https://www.bryntum.com/docs/gantt/#Grid/guides/basics/features.md)

So what is the proper way to disable dependencies, cellEdit, taskDrag and so on?


Post by pmiklashevich »

We will fix the link. Please read the docs here: https://www.bryntum.com/docs/gantt/#Gantt/guides/integration/react.md#features
When you use React wrapper you need to configure features individually instead:

const ganttConfig = {
dependenciesFeature : false,
}

Please checkout a react demo, for example, Gantt/examples/frameworks/react/javascript/taskeditor/src/AppConfig.js

const ganttConfig = {
........
    taskEditFeature: {
    .......
    }
}

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply