Hello,
I want to customize my toolbar with custom items but without delete default items (provided widgets like todayButton, toggleSidebar, viewDescription...). However, I want to customize some of the provided widgets style without losing their initial logic.
tbar: {
namedItems: {
toggleEventView: {
type: 'widget',
html:
<FormControlLabel control={<Switch checked={isDetailedView} onChange={() => setIsDetailedView(!isDetailedView)} />} label="Detailed View" />
},
},
items: {
toggleEventView: true,
}
}
When I do that, all I have in my toolbar is my "toggleEventView" widget but I don't have the provided widgets anymore...
But when I set one of the provided item like this :
items: {
toggleEventView: true,
viewDescription: true
}
The widget is shown but without its initial properties (button type by default) :
If there is no other choice, I can rebuild the provided widgets that I want to use in my toolbar but where can I find the logic to put in the object ? Is there a better way to do that ?
Thanks for your help !