Raised when the control is unloading.
Namespace: MindFusion.Controls
File: Control.js
JavaScript
![]() |
---|
diagramView.controlUnloading.addEventListener(onViewUnloading); |
This event is raised by the dispose method, before detaching DOM elements. In vanilla component, that usually happens when the page unloads. In diagram wrapper components for JavaScrript UI frameworks, it's raised by component's lifecycle hooks indicating that DOM element is being detached, such as ngOnDestroy.