lightbox_header

指定 lightbox 的 header 部分

start_dateDate任务计划开始的日期
end_dateDate任务计划完成的日期
taskTask任务对象

Example

gantt.templates.lightbox_header = function(start_date,end_date,task){
    return gantt.templates.task_time(task.start_date, task.end_date, task)  +  " " +
    (gantt.templates.task_text(task.start_date, task.end_date, task) || "").substr(0, 70);
};

Details

如果未设置此模板,header 中的日期部分将默认使用 task_time 模板中定义的格式。

See also
Back to top