tooltip_text

specifies the text of tooltips

Parameters

startDatethe date when a task is scheduled to begin
endDatethe date when a task is scheduled to be completed
taskobjectthe task object

Example

gantt.templates.tooltip_text = function(start,end,task){
    return "<b>Task:</b> "+task.text+"<br/><b>Start date:</b> " + 
    gantt.templates.tooltip_date_format(start)+ 
    "<br/><b>End date:</b> "+gantt.templates.tooltip_date_format(end);
};

Details

This template is defined in the ext/dhtmlxgantt_tooltip.js extension, so you need to include it on the page. Read the details in the Tooltips for Gantt Elements article.

See also
Back to top