Search
NodeCreating Event

A validation event raised while the user is drawing a new node.

Syntax


JavaScript  Copy Code

function onNodeCreating (sender, args)

Event Data

NodeCreating handlers receive an event object of type NodeEventArgs.

Remarks

NodeCreating is raised after each mouse movement while drawing a new node. setCancel will change the mouse cursor to DisallowCursor (a Stop icon by default). The event is raised once again when the mouse button is released. setCancel  in that case will cancel the node creation.

To handle the NodeCreating event, assign the name of the respective JavaScript function (for example 'onNodeCreating') to the NodeCreatingScript property.

See Also

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
NodeCreated Event