设置 Mini-Calendar 头部(日期选择器)中周日标签的格式
date | Date | 表示头部单元格中某个周日的具体日期 |
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);
};
该模板仅在启用 minical 插件时生效。