Search
Events Class
Remarks See Also
 






Defines all events raised by the Diagram component.

Namespace: MindFusion.Diagramming
File: Events.js

 Syntax

JavaScript  Copy Code

// class
Events.prototype = {}

 Remarks

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.

 Example

The following code handles nodeCreated event, raised when the user draws a new node.

JavaScript  Copy Code

diagram.addEventListener(Events.nodeCreated, onNodeCreated);

function onNodeCreated(sender, args)
{
    var node = args.node;
    node.handlesStyle = HandlesStyle.HatchHandles3;
}

 Inheritance Hierarchy

MindFusion.Diagramming.Events

 See Also