tooltip_date_format
Description
定义开始和结束日期在tooltip中的显示格式
tooltip_date_format: (date: Date) => string;
Parameters
date- (required) Date - 需要格式化的日期
Returns
text- (string) - 显示在gantt tooltip中的html文本
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 元素的工具提示文档。
Related API
Related Guides
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.