본문으로 건너뛰기

calendar_date

Description

미니 캘린더(날짜 선택기)의 일자 셀 내부에 표시되는 내용을 정의합니다.

calendar_date: (date: Date) => string

Parameters

  • date - (required) Date - 셀에 표시되는 날짜입니다.

Returns

  • text - (string) - 미니 캘린더의 날짜 셀 내부 HTML 콘텐츠입니다.

Example

const dayDate = scheduler.date.date_to_str("%d");
scheduler.templates.calendar_date = function (date) {
// 캘린더 셀에 툴팁으로 해당 날짜의 이벤트 수를 표시합니다.
const dayEnd = scheduler.date.add(date, 1, "day");
const events = scheduler.getEvents(date, dayEnd);
return "<div title='"+events.length+" events'>" +dayDate(date)+ "</div>";
};

Details

노트

이 템플릿은 minical 플러그인이 활성화된 경우에만 작동합니다.

mini_calendar_templates

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.