Hello. I am trying to make the events in my calendar user configurable, and would like to change the eventRenderer configuration of the calendar at runtime. I have tried to do it as below, and then refresh the calendar, but this does not work.
Object.assign(calendar.config.modes.weekResources.view,
{eventRenderer: ({ eventRecord }: { eventRecord: EventModel }) => {
return renderToStaticMarkup(
<MyCustomEvent eventRecord={eventRecord} />
)
}
}
)
calendar.refresh()
Is there any way to change the eventRenderer config, and refresh all events according to the new eventRenderer?