The onBeforeEventDomRemove event handler runs before a Scheduler event’s custom DOM content is removed.
Declaration
DayPilot.Scheduler.onBeforeEventDomRemove(args)Parameters
args.control(DayPilot.Scheduler, read-only): the Scheduler instance.args.e(DayPilot.Event, read-only): the rendered event.args.element: the custom content originally supplied toonBeforeEventDomAdd(read-only).
Notes
Since version 2026.4.7086, custom event content supports floating labels. Scrolling a partially visible event keeps its custom controls and their current state. Store values that must survive event redraws or view changes in application state.
Use this callback to clean up subscriptions, timers, or other application resources associated with the custom content. The React and Vue wrappers handle framework component cleanup automatically.
See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot