跳转到主要内容

week_date

Description

设置视图头部显示的日期

week_date: (start: Date, end: Date) => string

Parameters

  • start - (required) Date - 视图的起始日期
  • end - (required) Date - 视图的结束日期

Returns

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

Example

scheduler.templates.week_date = function(start, end){
return scheduler.templates.day_date(start)+" – "+
scheduler.templates.day_date(scheduler.date.add(end,-1,"day"));
};

Applicable views: Week view, Week 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.