Skip to main content Link Menu Expand (external link) Document Search Copy Copied

destroy()

Destroy the calendar

const cal = new CalHeatmap();
cal.destroy(): Promise<unknown>

Return

Return a Promise, which will resolve once the calendar finished destroying (after all animations completed).


Usage

Example

const cal = new CalHeatmap();
cal.paint({ ... });

// Destroy it
cal.destroy().then(() => { console.log('Destroy complete!') });