TIMELINE_date
정보
이 기능은 PRO 에디션에서만 사용할 수 있습니다.
Description
뷰 헤더에 표시되는 날짜를 정의합니다.
TIMELINE_date: (date1: Date, date2: Date) => string;
Parameters
date1- (required) Date - 이벤트의 시작 날짜date2- (required) Date - 이벤트의 종료 날짜
Returns
text- (string) - scheduler에 렌더링할 html 텍스트
Example
scheduler.templates.timeline_date = function(date1, date2){
if (date1.getDay()==date2.getDay() && date2-date1<(24*60*60*1000))
return scheduler.templates.day_date(date1);
return scheduler.templates.week_date(date1, date2);
};
Applicable views: Timeline view
Details
노트
이 템플릿은 timeline 플러그인이 활성화되어 있어야 합니다.
timeline_date 템플릿이 정의되어 있지 않으면, 헤더의 날짜는 기본적으로 week_date 템플릿에서 사용하는 형식으로 표시됩니다.
Related Guides
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.