跳转到主要内容

year_date

Description

设置视图头部显示的日期

year_date: (date: Date) => string

Parameters

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

Returns

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

Example

var date_to_str=scheduler.date.date_to_str(scheduler.locale.labels.year_tab +" %Y");

scheduler.templates.year_date = function(date){
return date_to_str(date);
};

Applicable views: Year view

Details

注释

此模板需要启用 year_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.