跳到主要内容

templates

Description

定义甘特图中日期、标题、工具提示的格式化模板

templates: GanttTemplates

Example

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

Details

templates 对象的属性在根 API 页面的单独章节中描述,参见页面 “Gantt API: Templates”。

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.