These docs are for an old release.
Info on upgrading to v4
duration 3.3.0
Sets the exact duration of a custom view.
Duration-ish object
Example for a Custom View:
$('#calendar').fullCalendar({
defaultView: 'agendaFourDay',
views: {
agendaFourDay: {
type: 'agenda',
duration: { days: 4 }
}
}
});
Simpler example for a calendar with one view:
$('#calendar').fullCalendar({
defaultView: 'agenda',
duration: { days: 4 }
});
Special Case
If the duration is specified like {weeks:1}
, then the dateAlignment will automatically default to start-of-week. However, if it is specified as {days:7}
, then no such alignment will happen.