scale_row_class
Description
Specifies the CSS class that will be applied to the time scale
scale_row_class: (scale: Scale) => string | void;
Parameters
scale- (required) Scale - the scale's configuration object
Returns
text- (string | void) - a CSS class for the item in question
Example
<style>
.day_scale{ background-color: #C3C7D4;}
.week_scale{ background-color: #E5DFE8;}
.month_scale{ background-color: #DFE8DF;}
</style>
gantt.templates.scale_row_class = function(scale){
switch(scale.unit){
case "day":
return "day_scale";
case "month":
return "month_scale";
default:// "week"
return "week_scale";
}
}