我正在使用 fullcalendar
并将日历配置为不包括周末:
$('#calendar').fullCalendar({
weekends: false,
但是 header
title
属性显示的日期范围是从星期日到星期六。有没有办法更改标题以使日期范围也不包括周末?
最佳答案
找到这个github issue 。我刚刚使用最新的 fullcalendar 2.9.1 进行了测试,它可以工作。您必须将该函数与 8091
行上 fullcalendar.js 中的函数交换。
computeTitle: function () {
var startDate, endDate;
if (this.intervalUnit == 'month') {
startDate = this.intervalStart;
endDate = this.intervalEnd;
}
else {
startDate = this.start;
endDate = this.end;
}
return this.formatRange(
{ start: startDate, end: endDate },
this.opt('titleFormat') || this.computeTitleFormat(),
this.opt('titleRangeSeparator')
);
}
关于fullcalendar - 比赛周的完整日历标题标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38896259/