agenda_time
Description
Agenda 뷰의 첫 번째 열에 표시되는 날짜를 정의합니다.
agenda_time: (start: Date, end: Date, event: any) => string
Parameters
start- (required) Date - 이벤트 시작 날짜end- (required) Date - 이벤트 종료 날짜event- (required) object - 이벤트 데이터
Returns
text- (string) - 스케줄러에 표시되는 HTML 콘텐츠
Example
const templates = scheduler.templates;
scheduler.templates.agenda_time = function(start, end, event){
if (scheduler.isOneDayEvent(event)) {
return templates.day_date(event) + " " + templates.event_date(start);
} else {
return templates.day_date(start) + " – " +
templates.day_date(end);
}
};
Applicable views: Agenda view
Details
노트
이 템플릿은 agenda_view 플러그인이 활성화된 경우에만 작동합니다.
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.