Skip to main content

tooltip_date_format

Description

Specifies the format of start and end dates displayed in the tooltip

tooltip_date_format: (date: Date) => string;

Parameters

  • date - (required) Date - the date which needs formatting

Returns

  • text - (string) - html text which will be rendered in the gantt

Example

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

Details

note

This template is defined in the tooltip extension, so you need to activate the tooltip plugin. Read the details in the Tooltips for Gantt Elements article.

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.