Back to Fullcalendar

viewDestroy

_docs-v3/view-api/viewDestroy.md

latest478 B
Original Source

Triggered when a rendered date-range needs to be torn down.

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

view is the View Object for the view that is about to be destroyed.

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

This callback will be triggered immediately before the view is about to be removed from the DOM. This could happen because of a view type switch, a date range change, or a destroy method call.