date_grid

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

Parameters

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

Example

gantt.templates.date_grid = function(date, task, column){
   if(task && gantt.isUnscheduled(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