定义应用于时间刻度的 CSS 类
scale | Scale | 时间刻度的配置对象 |
<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";
}
}