date_grid
Description
Specifies the content of columns that show dates (return Date values) in grid
date_grid: (date: Date, task: Task, column: string) => string;
Parameters
date- (required) Date - the date which needs formattingtask- (required) Task - the task objectcolumn- (required) string - the name of the column that called the template
Returns
text- (string) - html text which will be rendered in the gantt
Example
gantt.templates.date_grid = function(date, task, column){
if(task && gantt.isUnscheduledTask(task) && gantt.config.show_unscheduled){
return gantt.templates.task_unscheduled_time(task);
}else{
return gantt.templates.grid_date_format(date);
}
}