support
support copied to clipboard
Add JSX support for labels renderer
Hello,
I’m reaching out because I would like to use the label feature to display information next to my events. While going through the documentation: Scheduler.feature.Labels#config-after Scheduler.feature.Labels#typedef-SchedulerLabelConfig
I noticed that the renderer functions only accept HTML as a string.
Is there a way to pass a component instead? Because I would like to be able to do something like this:
labelsFeature: {
labelLayoutMode: 'measure',
after: {
renderer: ({eventRecord}) => <SomeComponentUsingReactStateOrReactContexte eventRecord={eventRecord} />
}
}
Thank you for your response.
Hello @taauntik , any news on this ?
@philippechevieux Unfortunately, no news for now! You can subscribe to the ticket so you'll be notified when there is any updates!