Obsolete. Defines all events raised by the Diagram component.
Namespace: MindFusion.Diagramming
Assembly: Events.js
SyntaxJavaScript
Copy Code
|
|---|
// class |
Remarks Obsolete |
|---|
Events are now raised by event emitters exposed as properties of the Diagram class. Adding event listeners through this class is supported for compatibility with old code. |
To register an event handler function, call the addEventListener method of Diagram. Event handlers receive the diagram as first argument, and an instance of EventArgs subclass as second argument.
ExampleThe following code handles nodeCreated event, raised when the user draws a new node.
JavaScript
Copy Code
|
|---|
diagram.addEventListener(Events.nodeCreated, onNodeCreated); |
Inheritance HierarchyMindFusion.Diagramming.Events
See Also