Search
Control.controlUnloaded Event
See Also
 





Raised when the control is unloaded.

Namespace: MindFusion.Controls
File: Control.js

 Syntax

JavaScript  Copy Code
diagramView.controlUnloaded.addEventListener(onViewUnloaded);

function onViewUnloaded(sender, args)
{
}

 Remarks

This event is raised by the dispose method. 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