histogram_cell_label

定义显示在单元格内的标签

start_dateDate刻度单元格的起始日期
end_dateDate刻度单元格的结束日期
resourceobject与单元格关联的资源对象
tasksArray <Task>分配给指定资源且与单元格起止日期重叠的任务列表
assignmentsarray与指定任务起止日期相关联的资源分配

Available only in PRO Edition

Example

gantt.templates.histogram_cell_label = function(start_date,end_date,resource,tasks,
    assignments){
    return tasks.length * 8;
};

Related samples

Details

此功能仅在PRO版本中可用。

仅当启用 process_resource_assignments 配置时,才会提供 "assignments" 参数。

See also
Change log

在版本7.1中引入了 assignments 参数

Back to top