task_time
Description
定义在lightbox标题中显示的日期范围
task_time: (start: Date, end: Date, task: Task) => string;
Parameters
start- (required) Date - 任务开始的日期end- (required) Date - 任务预计完成的日期task- (required) Task - 任务对象本身
Returns
text- (string) - 在gantt中显示的html内容
Example
gantt.templates.task_time = function(start,end,task){
return gantt.templates.task_date(start)+" - "+gantt.templates.task_end_date(end);
};
Related API
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.