logo

FullCalendar

dayCount 3.3.0

Sets the exact number of days displayed in a custom view, regardless of weekends or hiddenDays.

Integer

When a view’s range is specified with a duration, hidden days will simply be omitted, and the view will stretch to fill the missing space. However, if you specify dayCount, you are guaranteed to see a certain number of days.

Example for a Custom View:

$('#calendar').fullCalendar({
  weekends: false,
  defaultView: 'agendaFourDay',
  views: {
    agendaFourDay: {
      type: 'agenda',
      dayCount: 4
    }
  }
});

Simpler example for a calendar with one view:

$('#calendar').fullCalendar({
  weekends: false,
  defaultView: 'agenda',
  dayCount: 4
});