Tell me how to change the ProjectModel class or extend it?
In some forum articles, I see that projectModelClass is passed to the Gantt configuration
viewtopic.php?f=52&t=19490&p=96414&hilit=ProjectModelClass#p96414
viewtopic.php?f=52&t=20227&p=100384&hilit=ProjectModelClass#p100384
However, if I try to do something similar
nothing comes out
const ganttConfig: BryntumGanttProps = {
project: {
autoLoad: true,
taskModelClass: TaskExtModel,
taskStore: TaskExtStore,
transport: {
load: {
url: 'data/launch-saas.json'
}
},
// This config enables response validation and dumping of found errors to the browser console.
// It's meant to be used as a development stage helper only so please set it to false for production systems.
validateResponse : true
},
//@ts-ignore
projectModelClass : ProjectModelExtended,
columns: [{ type: 'name', field: 'name', width: 250 }],
viewPreset: 'weekAndDayLetter',
barMargin: 10
};
export { ganttConfig };
typescript also swears that there is no such parameter at all
Ver: 5.1.X