Skip to main content

agenda_day

Description

Specifies the content of the day cell of the Agenda view

agenda_day: (date: Date) => string

Parameters

  • date - (required) Date - the date which needs formatting

Returns

  • text - (string) - html text for rendering in the scheduler

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

  • added 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.