Page 2 of 2

Re: [REACT] ProjectModelClass

Posted: Fri Aug 05, 2022 9:37 am
by tikhonov.a.p

Thanks a lot for the detailed answer, now I understand why sometimes I can't get to private methods.
Thank you, I will be looking forward to the decision of the ticket. Do I understand correctly that this is a simple revision and it could be expected in the upcoming releases?


Re: [REACT] ProjectModelClass

Posted: Fri Aug 05, 2022 1:31 pm
by alex.l

I think so. Our product management didn't analyse it yet. We will see when it gets a milestone.


Re: [REACT] ProjectModelClass

Posted: Thu Oct 06, 2022 10:09 am
by tikhonov.a.p

Good afternoon. Can you tell me if there is any news about this? I really want to be able to extend the ProjectModel


Re: [REACT] ProjectModelClass

Posted: Thu Oct 06, 2022 10:22 am
by alex.l

Sorry for long waiting. I will ask management if we can rise a prio for that ticket.

Please check this topic, it should help you to go forward viewtopic.php?f=51&t=22419&p=110928&hilit=extend+projectmodel#p110928

You could also try this

const ganttConfig: BryntumGanttProps = {
    project: new ProjectModelExtended({
        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

columns: [{ type: 'name', field: 'name', width: 250 }],
viewPreset: 'weekAndDayLetter',
barMargin: 10
};

export { ganttConfig };

Re: [REACT] ProjectModelClass

Posted: Thu Oct 06, 2022 10:46 am
by tikhonov.a.p

Understood. Thanks, I'll try it now