Hide start time in FullCalendar

后端 未结 13 1635
灰色年华
灰色年华 2021-02-06 21:32

On FullCalendar, in the month view, is there a way to hide an event\'s start time?

13条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-06 22:17

    In case you completely want to remove the Start time, you can use the below code

    $('#calendar-canvas').fullCalendar({
        header: {
            left: 'today prev,next title',
            right: 'agendaDay,agendaWeek,month'
        },
        firstDay: 1,
        eventRender: function(event, element) {
            $(element).find(".fc-event-time").remove();
        }
    });
    

提交回复
热议问题