Zum Hauptinhalt springen

calendar_date

Description

Definiert, was in den Tageszellen des Mini-Kalenders (Date Picker) angezeigt wird

calendar_date: (date: Date) => string

Parameters

  • date - (required) Date - das Datum, das durch die Zelle repräsentiert wird

Returns

  • text - (string) - der innere HTML-Inhalt für die Datumzelle des Mini-Kalenders

Example

const dayDate = scheduler.date.date_to_str("%d");
scheduler.templates.calendar_date = function (date) {
// zeigt die Anzahl der Ereignisse für den Tag als tooltip in der Kalenderzelle an
const dayEnd = scheduler.date.add(date, 1, "day");
const events = scheduler.getEvents(date, dayEnd);
return "<div title='"+events.length+" events'>" +dayDate(date)+ "</div>";
};

Details

Hinweis

Die Vorlage funktioniert nur, wenn das minical Plugin aktiviert ist.

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.