Only month view in fullcalendar (delete / hide "Day" and "Week")

My fullcalendar has - "Month | Week | Day", I want to remove or hide the views "Week" and "Day", because we used only "Month".

Could you tell me how to do this?

+8
fullcalendar
source share
2 answers

When you start fullcalendar, do not 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: '' } }); 
+22
source share

right: false works.

  $('#calendar').fullCalendar({ header: { left: 'prev,next ', center: 'title', right: false, }, }); 
-2
source share

All Articles