跳转到主要内容

event_bar_date

Description

用于设置事件的日期。此功能仅适用于持续一天的事件。

event_bar_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.event_bar_date = function(start,end,ev){
return "• <b>"+scheduler.templates.event_date(start)+"</b> ";
};

Applicable views: Month 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.