跳到主要内容

task_date

Description

定义用于 lightbox 中"Time period"部分标签的日期格式

task_date: (date: Date) => string;

Parameters

  • date - (required) Date - 要格式化的日期值

Returns

  • text - (string) - 将在 gantt 中显示的 html 内容

Example

gantt.templates.task_date= function(date){
return gantt.date.date_to_str(gantt.config.task_date)(date);
};