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

tooltip_text

Description

Определяет текст подсказок

tooltip_text: (start: Date, end: Date, task: Task) => string | void;

Parameters

  • start - (обязательно) Date - дата начала запланированной задачи
  • end - (обязательно) Date - дата завершения запланированной задачи
  • task - (обязательно) Task - объект задачи

Returns

  • text - (string | void) - HTML-текст, который будет отображаться на диаграмме Ганта

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. Подробности читайте в статье 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.