Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Only month view in fullcalendar (remove/Hide "Day" and "Weeks" view)

Tags:

fullcalendar

My fullcalendar has - "Month|Week|Day" view , I want to remove or hide the "Week" and "Day" views as we have been using only "Month" View.

Can you please tell me how to do this?

like image 846
dsi Avatar asked Apr 29 '13 13:04

dsi


1 Answers

When you start fullcalendar, don't include agendayDay and agendaWeek. Something like

$('#calendar').fullCalendar({
    header: {
        left: 'prev,next',
        center: 'title',
        right: 'month'
    }
});

Update: To get rid of the month button:

$('#calendar').fullCalendar({
    header: {
        left: 'prev,next',
        center: 'title',
        right: ''
    }
});
like image 123
nwalke Avatar answered Oct 14 '22 17:10

nwalke