tooltip_date_format

定义开始和结束日期在tooltip中的显示格式

dateDate需要格式化的日期

Example

gantt.templates.tooltip_date_format=function (date){
    var formatFunc = gantt.date.date_to_str("%Y-%m-%d %H:%i");
    return formatFunc(date);
};

Details

该模板是tooltip扩展的一部分,请确保启用tooltip插件。更多信息请参见Gantt 元素的工具提示文档。

See also
Back to top