defines the CSS class names of cells in the resource timeline cells
start_date | Date | start date of the scale cell |
end_date | Date | end date of the scale cell |
resource | object | the resource object |
tasks | array | tasks that are assigned to specified resource and overlap start/end dates of the cell |
Available only in PRO Edition
gantt.templates.resource_cell_class = function(start_date, end_date, resource, tasks){
if (tasks.length <= 1) {
return "workday_ok";
} else {
return "workday_over";
}
};
This functionality is available in the PRO edition only.
tasks
argument.