为什么FullCalendar不显示小时?

时间:2016-06-08 17:00:30

标签: javascript symfony fullcalendar

日历旁边没有显示小时数。 我上传了一张图片,并将代码更多地理解了问题 我该如何纠正?enter image description here

代码javascript:

$(document).ready(function () {

        var date = new Date();
        // the code display the calendar
        $('#calendar').fullCalendar({
            // the header
            header:{
                left: 'prev,next today',
                center: 'title',
                right: 'agendaWeek,agendaDay'
            },
            defaultView: 'agendaWeek',
            lang: 'fr',
            buttonIcons: false, // show the prev/next text
            editable: true, // resize event
            eventLimit: true, // allow "more" link when too many events
            minTime: '06:00:00',
            maxTime: '20:00:00',
            eventRender: function (event, element) {
                element.find('.fc-title').append(" || " + event.type);
            },
            dayClick: function (date, jsEvent, view, resourceObj) {
                //getting the clicked date from calendar
            },
            eventClick: function (calEvent) {
               // event clicked
            },
            // events redered in twig template 
            // I an working with symfony
            events:{{ events|raw }} 
        })
    });

1 个答案:

答案 0 :(得分:0)

非常感谢我使用的是fc-time {display:none;}它现在可以正常使用