Skip to main content

task_time

Description

Specifies the date period in the header of the lightbox

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

Parameters

  • start - (required) Date - the date when a task is scheduled to begin
  • end - (required) Date - the date when a task is scheduled to be completed
  • task - (required) Task - the task object

Returns

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

Example

gantt.templates.task_time = function(start,end,task){
return gantt.templates.task_date(start)+" - "+gantt.templates.task_end_date(end);
};