tooltip_text

设置在tooltip中显示的文本

startDate任务计划开始的日期
endDate任务计划结束的日期
taskTask任务对象

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

该模板是tooltip扩展的一部分,因此必须启用tooltip插件。更多详情请参见Gantt 元素的工具提示文章。

See also
Back to top