date_grid

定义在显示日期(返回 Date 值)的列中展示的内容,这些列位于 grid 中

dateDate要格式化的日期值
taskTask与日期相关联的任务对象
columnstring调用模板的列名

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

Related samples

See also
Back to top