Our state of the art Gantt chart


Post by derulker »

Hi,

I see the TaskTooltip accepts a template function that returns an HTML string.

Is there a way to use a React component for the Task Tooltip?

Thanks.


Post by saki »

This is not supported out of the box currently but you could try to create a React portal with the desired React component in onBeforeShow or in template function. Don't forget to destroy the portal on tooltip hide to avoid memory leaks.

The non-React example of custom tooltips may come handy too: https://bryntum.com/examples/scheduler/tooltips/


Post by derulker »

Saki,

Thanks for the suggestion. I will try using a React portal.

What is the event for tooltip hide?


Post by mats »

There is a 'hide' event already on Widget level, but currently not documented (fixed for 4.1.1 coming in one or two days)


Post Reply