Перейти к основному содержимому

tooltip_date_format

Description

Указывает формат дат начала и конца, отображаемых во всплывающей подсказке

tooltip_date_format: (date: Date) => string;

Parameters

  • date - (required) Date - дату, которую нужно отформатировать

Returns

  • text - (string) - 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. Подробности см. в статье Tooltips for Gantt Elements.

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.