Skip to main content

calendar_date

Description

Specifies the content of day-cells in the Mini-Calendar (date picker)

calendar_date: (date: Date) => string

Parameters

  • date - (required) Date - the cell's date

Returns

  • text - (string) - inner html for the date cell of the Mini_calendar

Example

const dayDate = scheduler.date.date_to_str("%d");
scheduler.templates.calendar_date = function (date) {
// show the number of events per day in a tooltip of the calendar day-cell
const dayEnd = scheduler.date.add(date, 1, "day");
const events = scheduler.getEvents(date, dayEnd);
return "<div title='"+events.length+" events'>" +dayDate(date)+ "</div>";
};

Details

note

The template requires the minical plugin to be activated.

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.