timeline_cell_class
Description
타임라인 영역 내 셀에 적용되는 CSS 클래스를 정의합니다.
timeline_cell_class: (item: any, date: Date) => string | void;
Parameters
item- (required) Task - | object 행과 연결된 작업 또는 리소스 객체date- (required) Date - 셀의 특정 날짜
Returns
text- (string | void) - 주어진 item에 대한 CSS 클래스 이름
Example
<style>
.weekend{ background: #f4f7f4 !important;}
</style>
gantt.templates.timeline_cell_class = function(task,date){
if(date.getDay()==0||date.getDay()==6){
return "weekend";
}
};