跳转到主要内容

event_date

Description

定义事件开始和结束日期中的时间部分。主要由其他模板使用,用于显示时间区间。

event_date: (date: Date) => string

Parameters

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

Returns

  • text - (string) - 用于在scheduler中渲染的html文本

Example

scheduler.templates.event_date = function(date){
var formatFunc = scheduler.date.date_to_str(scheduler.config.hour_date);
return formatFunc(date);
}
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.