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

task_time

Description

Задает диапазон дат в заголовке lightbox

task_time: (start: Date, end: Date, task: Task) => string;

Parameters

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

Returns

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

Example

gantt.templates.task_time = function(start,end,task){
return gantt.templates.task_date(start)+" - "+gantt.templates.task_end_date(end);
};
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.