본문으로 건너뛰기

scale_row_class

Description

시간 축에 적용될 CSS 클래스를 지정합니다

scale_row_class: (scale: Scale) => string | void;

Parameters

  • scale - (required) Scale - 스케일의 구성 객체

Returns

  • text - (string | void) - 해당 항목에 대한 CSS 클래스

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:// "주"
return "week_scale";
}
}
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.