Reputation: 21
I'm new in Laravel and I use the fullcalendar
. I want the dayGridMonth
View to be unselectable BUT the other views like timeGridWeek
, timeGridDay
will be selectable. Is there a way to do that?
Upvotes: 0
Views: 113
Reputation: 798
For now, What I can think of, is to use View-Specific options.
Use Selectable in all views with true or false related to that view and try if it works for you.
You may check this question for an Example.
It might look like the following:
var calendar = new Calendar(calendarEl, {
views: {
dayGrid: {
selectable: false
},
timeGrid: {
selectable: true
},
week: {
selectable: true
},
day: {
selectable: true
}
}
});
Upvotes: 1