Our state of the art Gantt chart


Post by xbtc »

Hello all,

just a short question:

The GANTT chart allows us to specify a template for rendering baseline tooltips as shown in the code below. Is it possible to implement the template as a React component or use JSX somehow? For me only returning a string containing html seems to work...

const gantt = new Gantt({
    features : {
        baselines : {
            // Custom tooltip template for baselines
            template(data) {
                // Is it possible to somehow return a react component or JSX here instead of a string?
                return "<div>Hello World</div>"
             }
 

Many thanks in advance.


Post by saki »

Although JSX is not yet supported in the tooltips, there is a way how it can be done described here: viewtopic.php?f=44&t=13554


Post by xbtc »

Hey saki - thank you very much!! I will try that approach...


Post Reply