Hide clock in FullCalendar

I downloaded FullCalendar today.

The problem is I want to use a calendar plugin that doesn't require hours. The events continue all day long. Can I hide the hour column on the Day tab?

+3


source to share


2 answers


Very easy to use

, allDayDefault: true

      



after the header section in a full screen script.

+3


source


You need to use the "basicDay" view and set "allDayDefault" to true:

$(document).ready(function() {
    $('#calendar').fullCalendar({
        header: {
            left: 'prev,today,next',
            center: 'title',
            right: 'month,basicWeek,basicDay'
        },
        allDayDefault: true,
    })
});

      

In these configurations, the event will be set as all day by default. And the view "basicWeek" ans basicWeek only shows the day without hours.

See the results: month tab



tab

Day tab

Read more in the FullCalendar documentation: FullCalendar Documents .

+1


source







All Articles