Our state of the art Gantt chart


Post by rahulranjan »

Hi
i want to customize dependency line hover tool tip Data .
Only want to show the name not the ID of task

Post by sergey.maltsev »

Hi, rahulranjan!

You could use this tooltip config for Dependencies feature:

https://www.bryntum.com/docs/scheduler/#Scheduler/feature/Dependencies#config-tooltip
const gantt = new Gantt({

    features : {
        dependencies : {
            tooltip : {
                getHtml : ({ forElement }) => {
                    const dependency = gantt.dependencyStore.getById(forElement.getAttribute('depId'));
                    return `${dependency.sourceTask.name} -> ${dependency.targetTask.name}`;
                }
            }
        }
    },

    ...

Post Reply