calendar_date
Description
Определяет, что отображается внутри ячеек дней Мини-Календаря (date picker)
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) {
// отображаем количество событий за день в tooltip на ячейке календаря
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.

Related API
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.