跳转到主要内容

agenda_time

Description

定义在Agenda视图第一列中显示的日期

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

Parameters

  • start - (required) Date - 事件的开始日期
  • end - (required) Date - 事件的结束日期
  • event - (required) object - 事件数据

Returns

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

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

注释

该模板仅在启用agenda_view插件时生效。

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.