본문으로 건너뛰기

event_class

Description

이벤트 컨테이너에 추가될 CSS 클래스를 정의합니다.

event_class: (start: Date, end: Date, ev: any) => string

Parameters

  • start - (required) Date - 이벤트가 시작되는 날짜
  • end - (required) Date - 이벤트가 종료되는 날짜
  • ev - (required) object - 이벤트 객체

Returns

  • css_class - (string) - 해당 요소에 적용할 CSS 클래스

Example

scheduler.templates.event_class = function(start,end,ev){
return "";
};

Applicable views: Day view, Month view, Week view, Year view, Units view, Timeline view

Details

Timeline 뷰에서는 이 템플릿이 'Bar' 및 'Tree' 모드에서만 사용됩니다.

이벤트 색상 커스터마이징에 대한 자세한 내용은 관련 문서 "Custom Event's Color"를 참고하세요.

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.