跳转到主要内容

day_scale_date

Description

设置日视图子标题中显示的日期

day_scale_date: (date: Date) => string

Parameters

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

Returns

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

Example

const formatDayScale = scheduler.date.date_to_str("%j %M %Y");

scheduler.templates.day_scale_date = function(date){
return formatDayScale(date);
};

Applicable views: Day 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.