Zum Hauptinhalt springen

agenda_time

Description

Definiert das Datum, das in der ersten Spalte der Agenda-Ansicht angezeigt wird

agenda_time: (start: Date, end: Date, event: any) => string

Parameters

  • start - (required) Date - der Startzeitpunkt des Events
  • end - (required) Date - der Endzeitpunkt des Events
  • event - (required) object - die Event-Daten

Returns

  • text - (string) - HTML-Inhalt, der zur Anzeige im Scheduler verwendet wird

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

Hinweis

Diese Vorlage funktioniert nur, wenn das agenda_view Plugin aktiviert ist.

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.