Disable event scheduling for fullcalendar month

1

I have a program and have schedule events for the month and week, I'm using fullcalendar jQuery, I'd like to disable event scheduling for the month. And schedule only by the week.

    
asked by anonymous 13.03.2017 / 15:23

1 answer

1

To use only the week, you can do two things:

1st - Put on startup

  

defaultView: 'agendaWeek',

This will cause the calendar to initialize in calendar mode.

2nd - Remove 'month' from the header

header: {
    left: 'prev,next today',
    center: 'title',
    right: 'agendaWeek,agendaDay'
},

If you want to still disable 'allday' events, initializing

  

'allDaySlot': false

An example can be seen at JSFiddle

You can find more options in Fullcalendar Docs

    
23.04.2017 / 04:42