date_grid

specifies the content of start date or end date columns in grid

dateDatethe date which needs formatting
taskTaskthe task object
columnstringthe name of the column that called the template

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);
   }
}

See also
Back to top