Skip to main content

destroy()

Destroy the calendar

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

Arguments

  • none

Return

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

Usage

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

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

There's a destroy event, triggered at the start of the destroy process.