Search
Control.controlUnloading Event
See Also
 





Raised when the control is unloading.

Namespace: MindFusion.Controls
File: Control.js

 Syntax

JavaScript  Copy Code

diagramView.controlUnloading.addEventListener(onViewUnloading);

function onViewUnloading(sender, args)
{
}

 Remarks

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.

 See Also