Zum Hauptinhalt springen

agenda_day

Description

Definiert, was innerhalb der Tageszelle der Agenda-Ansicht angezeigt wird

agenda_day: (date: Date) => string

Parameters

  • date - (required) Date - das Datum, das formatiert werden soll

Returns

  • text - (string) - html-Inhalt, der im Scheduler angezeigt wird

Example

const dayDateToStr = scheduler.date.date_to_str("%F %j");
const dayDowToStr = scheduler.date.date_to_str("%l");

scheduler.templates.agenda_day = function(date){
return `<div className="dhx_agenda_day_date">${dayDateToStr(date)}</div>
<div className="dhx_agenda_day_dow">${dayDowToStr(date)}</div>`;
};

Change log

  • hinzugefügt in v7.0
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.