DayPilot.Month.dispose

The dispose() method destroys the control, removes the content of the placeholder <div>, and cleans up the object.

Declaration

DayPilot.Month.dispose()

Parameters

This method has no parameters.

Notes

After calling dispose(), the DayPilot.Month object is unusable.

Example

const month = new DayPilot.Month("dp", {
  // ...
});
month.init();

// ...

month.dispose();

See Also

DayPilot.Month.disposed()

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript