year_scale_date
Description
定义在视图的月份块子标题中显示的日期名称
year_scale_date: (date: Date) => string
Parameters
date- (required) Date - 要格式化的日期
Returns
text- (string) - 在scheduler中显示的html内容
Example
const formatScaleDate = scheduler.date.date_to_str("%D");
scheduler.templates.year_scale_date = function(date){
return formatScaleDate(date);
};
Applicable views: Year view
Details
注释
该模板需要启用year_view插件。
Related Guides
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.