A validation event raised while the user is drawing a new link.
Namespace: MindFusion.Diagramming
File: DiagramBase.js
JavaScript Copy Code |
---|
diagram.linkCreating.addEventListener(onLinkCreating); |
Event handlers receive a LinkEventArgs instance containing data about this event.
This example shows how to handle the linkCreating event to prevent cycles in the graph.
JavaScript Copy Code |
---|
// assuming namespaced scripts |
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |