Our state of the art Gantt chart


Post by koenvw »

Hi,

We used to add a listener to the beforeShow event on the taskTooltip to load some tooltip data from the server. Since we've updated to the 4.x.x version this doesn't work anymore.

The listeners are not triggered anymore. I've tested this on your Gantt Tooltips demo with the same result.

Has this changed since 4.0? If these are not triggered anymore, how should we load data from the server to the taskTooltip in the gantt?

Thanks


Post by alex.l »

Hi, koenvw

Loading remote data into the task tooltip is easy. Simply use the template and return a Promise which yields the content to show.

features: {
    taskTooltip: {
        template: ({
                taskRecord
            }) => AjaxHelper.get(`./fakeServer?name=${taskRecord.name}`)
            .then(response => response.text())
    }
}

We will add this info to our docs, thanks for your question!

All the best,
Alex

All the best,
Alex


Post Reply