跳转到主要内容

agenda_day

Description

定义了Agenda视图中每日单元格内显示的内容

agenda_day: (date: Date) => string

Parameters

  • date - (required) Date - 需要格式化的日期

Returns

  • text - (string) - 在scheduler中显示的html内容

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

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