본문으로 건너뛰기

TIMELINE_cell_value

정보

이 기능은 PRO 에디션에서만 사용할 수 있습니다.

Description

뷰의 셀 내에 예약된 이벤트 수를 나타냅니다.

TIMELINE_cell_value: (evs: array, date: Date, section: object) => string;

Parameters

  • evs - (required) array - 셀 내에 포함된 이벤트 객체들의 배열
  • date - (required) Date - 셀에 해당하는 날짜
  • section - (required) object - 섹션 객체

Returns

  • text - (string) - 스케줄러 렌더링에 사용되는 HTML 텍스트

Example

scheduler.templates.timeline_cell_value = function(evs, date, section){
return evs?evs.length:"";
};

Applicable views: Timeline view

Details

노트

이 템플릿은 timeline 플러그인이 활성화되어 있어야 합니다.

노트

기본적으로 이 템플릿은 Timeline 뷰의 'cell' 모드에서만 호출됩니다. 하지만, Timeline 뷰cell_template 옵션이 활성화된 경우, 뷰의 다른 모든 모드에서도 이 템플릿이 호출됩니다.

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.