calendar_scale_date

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

dateDate表示头部单元格中某个周日的具体日期

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 插件时生效。

See also
返回顶部