histogram_cell_class
info
This functionality is available in the PRO edition only.
Description
Defines the CSS class which is applied to a cell of the resource panel
histogram_cell_class: (start_date: Date, end_date: Date, resource: any, tasks: Array<Task>, assignments: any[]) => string | void;
Parameters
start_date- (required) Date - start date of the scale cellend_date- (required) Date - end date of the scale cellresource- (required) object - the resource objecttasks- (required) Array - <Task> tasks that are assigned to the specified resource and overlap start/end dates of the cellassignments- (required) array - resource assignments that are assigned to the specified start/end dates of the task
Returns
className- (string | void) - a CSS class for the histogram timeline cell
Example
gantt.templates.histogram_cell_class = function(start_date,end_date,resource,tasks,
assignments){
return "";
};
Related samples
Details
note
The "assignments" argument is only available when the process_resource_assignments config is enabled.
Related API
- histogram_cell_label
- histogram_cell_allocated
- histogram_cell_capacity
- process_resource_assignments
- resource_property
Related Guides
Change log
- the assignments parameter is added in v7.1