# viewRender

> FullCalendar v1 documentation, for an old release. Web version: https://legacy.fullcalendar.io/v1/viewRender
>
> Latest version (v7): https://fullcalendar.io/docs/datesSet.md

Triggered when a new date-range is rendered, or when the view type switches.

<div class='spec' markdown='1'>
function( view, element )
</div>

`view` is the [View Object](https://legacy.fullcalendar.io/v1/view-object.md) for the new view.

`element` is a jQuery element for the container of the new view.

This callback will get triggered when the user changes the view, or when any of the [date navigation](https://legacy.fullcalendar.io/v1/date-navigation.md) methods are called.

This callback will trigger after the view has been fully rendered, but before events have been rendered (see also: [eventAfterAllRender](https://legacy.fullcalendar.io/v1/eventAfterAllRender.md)).
