본문으로 건너뛰기

event_class

Description

이벤트의 컨테이너에 적용될 CSS 클래스를 지정합니다

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

Parameters

  • start - (필수) Date - 이벤트가 시작될 예정인 날짜
  • end - (필수) Date - 이벤트가 완료될 예정인 날짜
  • ev - (필수) 객체 - 이벤트의 객체

Returns

  • css_class - (string) - 관련 요소의 CSS 클래스

Example

scheduler.templates.event_class = (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.