templates

设置甘特图中日期、标题和tooltip的格式化templates

object templates;

Example

//定义表格中“开始时间”列显示日期的方式
gantt.templates.date_grid = function(date){
    return gantt.date.str_to_date(gantt.config.date_grid);
};

Details

有关templates对象的详细信息,请参阅主API页面中专门的章节
“Gantt API: Templates”

Back to top