Disable event scheduling by fullcalendar

Asked

Viewed 358 times

1

I have a program and have to schedule events by month and by week, I am using the jQuery fullcalendar, I would like to disable the scheduling of events by month. And schedule just for the week.

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

1 answer

1


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

1º - Put on startup

defaultView: 'agendaWeek',

this will cause the calendar to initialize in agenda mode.

2º - Remove Month button from header

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

If you still want to disable allday events, by

'allDaySlot': false

An example can be seen in Jsfiddle

You can find more options on Fullcalendar Docs

Browser other questions tagged

You are not signed in. Login or sign up in order to post.