leftside_text

specifies the text assigned to tasks bars on the left side

startDatethe date when a task is scheduled to begin
endDatethe date when a task is scheduled to be completed
taskTaskthe task object

Example

const formatter = gantt.ext.formatters.durationFormatter({
    format: ["day"]
});
 
gantt.templates.leftside_text = function(start, end, task){
    return formatter.format(task.duration);
};

Related samples

See also
Back to top