ASP.NET Pack Programmer's Guide
Events.hyperlinkClicked Field
See Also
 





Raised when the user clicks a hyperlink inside a node.

Namespace: MindFusion.Diagramming
Package: Events.js

 Syntax

JavaScript  Copy Code

var hyperlinkClicked

 Remarks

Event handlers receive a NodeEventArgs instance containing data about this event.

 Example

JavaScript  Copy Code

// show hyperlink inside node's text
node.setText("Visit our <a='http://mindfusion.eu'>website</a>!");
node.setEnableStyledText(true);

// handle hyperlink click event
diagram.addEventListener(
    Events.hyperlinkClicked, onHyperlinkClicked);

// open linked page when link has been clicked
function onHyperlinkClicked(sender, args)
{
    window.open(args.getHyperlink());
}

 See Also

Events Members
Events Class
MindFusion.Diagramming Namespace
addEventListener Method