简体   繁体   中英

Fullcalendar - Not able to display day names in Month view

I'm using full calendar 3.4 and trying to show day names in the month view, but nothing seems to work. Works fine in Week view though.

在此处输入图片说明

Tried multiple different things and here is my configuration:

$('#calendar').fullCalendar({

        defaultView: 'month',
        weekNumbers: true,
        selectable: true,
        selectHelper: true,
        selectOverlap: false,
        timeFormat: 'H:mm',
        firstDay: 1,
        views: {
            month: {
              columnHeaderFormat: 'ddd'
        }},


        header: {
            right: 'prev,next today',
            left: 'title',
            center: 'month,agendaWeek,agendaDay'
        } });

Any ideas how I can make it to work?

What momnet version you are using ? Try this code snippet. I can see day names in the header.

 (function($) { $(document).ready(function() { var fullcalendar = $('#calendar').fullCalendar({ defaultView: 'month', weekNumbers: true, selectable: true, selectHelper: true, selectOverlap: false, timeFormat: 'H:mm', firstDay: 1, views: { month: { columnHeaderFormat: 'ddd' } }, header: { right: 'prev,next today', left: 'title', center: 'month,agendaWeek,agendaDay' } }); }); })(jQuery) 
 <link href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.css" rel="stylesheet" /> <div id="calendar"></div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.js"></script> 

columnFormat: {
 month: 'dddd'
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM