fullcalendar - 比赛周的完整日历标题标题

标签 fullcalendar

我正在使用 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/

相关文章:

javascript - 完整日历 Jquery,自动将事件插入日历

javascript - AgendaView 中的全日历时间限制渲染

javascript - 如何在 fullcalendar 事件中插入自定义数据?

php - 如何使用 PHP 代码将日期从数据库表加载到 fullcalender? [没有 Ajax ]

javascript - 在 Fullcalendar.js 中显示事件时出现问题

javascript - 错误 - 我们的 JSON 格式不正确。完整日历不会显示事件

javascript - 在完整日历垂直资源 View 中显示悬停时间

javascript - 使用 Firebase 更新 FullCalendar 新事件

php - 每年将生日事件添加到 jQuery 完整日历中

javascript - 处理 dayClick 返回的日期时出现问题