solarmoon
solarmoon

Reputation: 21

dayGridMonth unselectable fullcalendar

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

Answers (1)

Khurram Ishaque
Khurram Ishaque

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

Related Questions