跳转到主要内容

hour_scale

Description

定义在Y轴上显示的元素

hour_scale: (date: Date) => string

Parameters

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

Returns

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

Example

scheduler.templates.hour_scale = function(date){
return scheduler.date.date_to_str(scheduler.config.hour_date)(date);
};

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