跳转到主要内容

calendar_scale_date

Description

设置 Mini-Calendar 头部(日期选择器)中周日标签的格式

calendar_scale_date: (date: Date) => string

Parameters

  • date - (required) Date - 表示头部单元格中某个周日的具体日期

Returns

  • text - (string) - 头部单元格的内部 HTML 内容

Example

const weekDayLabel = scheduler.date.date_to_str("%D");
scheduler.templates.calendar_scale_date = function (date) {
// M | T | W | T | F | S | S
return weekDayLabel(date).substr(0, 1);
};

Details

注释

该模板仅在启用 minical 插件时生效。

mini_calendar_templates

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.