specifies the text assigned to tasks bars on the left side
start | Date | the date when a task is scheduled to begin |
end | Date | the date when a task is scheduled to be completed |
task | Task | the task object |
const formatter = gantt.ext.formatters.durationFormatter({
format: ["day"]
});
gantt.templates.leftside_text = function(start, end, task){
return formatter.format(task.duration);
};