跳转到主要内容

quick_info_date

Description

定义在弹出编辑表单中显示的日期

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

Parameters

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

Returns

  • text - (string) - 用于在scheduler中显示的html文本

Example

scheduler.templates.quick_info_date = function(start, end, ev){
if (scheduler.isOneDayEvent(ev)){
return scheduler.templates.day_date(start, end, ev) + " " +
scheduler.templates.event_header(start, end, ev);
}else{
return scheduler.templates.week_date(start, end, ev);
}
};

Details

注释

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

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.