lightbox_header
Description
指定 lightbox 的 header 部分
lightbox_header: (start_date: Date, end_date: Date, task: Task) => string;
Parameters
start_date- (required) Date - 任务计划开始的日期end_date- (required) Date - 任务计划完成的日期task- (required) Task - 任务对象
Returns
text- (string) - 用于在 gantt 中渲染的 HTML 文本
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);
};
Related Guides
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.