These docs are for an old release.
Info on upgrading to version 2/3
viewDisplay 1.3
Triggered when the calendar loads and every time a different date-range is displayed.
This option has been deprecated in favor of the viewRender callback.
function( view ) { }
The calendar’s date-range changes whenever the user switches to a new view (for example, if they switch from “month” to “agendaWeek”) or when they click the prev/next buttons.
view
is the current View Object.
Within the callback function, this
will be set to the calendar’s main element.
Example usage of viewDisplay:
$('#calendar').fullCalendar({
viewDisplay: function(view) {
alert('The new title of the view is ' + view.title);
}
});
In versions 1.0 through 1.2.1, this option was known as monthDisplay.