定义在显示日期(返回 Date
值)的列中展示的内容,这些列位于 grid 中
date | Date | 要格式化的日期值 |
task | Task | 与日期相关联的任务对象 |
column | string | 调用模板的列名 |
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);
}
}