Hello,
currently I am using the advanced demo for React. It has a BryntumGantt component with configuration that connects the toolbar class.
tbar: { type: 'gantttoolbar' },
The toolbar class is running
GanttToolbar.initClass();
at the end to register itself.
I want to trigger redux dispatch inside one of the buttons in the toolbar, but to do so, I need to pass the dispatch function to the GanttToolbar somehow.
I tried using 'connect'
export const GanttToolbar = connect()(CustomToolbar);
, but the dispatch function isn't getting passed to the class component.
So in what way can I pass my custom props to the GanttToolbar?