跳转到主要内容

year_month

Description

定义视图中月份块标题中显示的月份名称。

year_month: (date: Date) => string

Parameters

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

Returns

  • text - (string) - 在scheduler中显示的html内容

Example

const formatMonth = scheduler.date.date_to_str("%F");
scheduler.templates.year_month = function(date){
return formatMonth(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.