Gets or sets the hyperlink associated with this diagram item.
Namespace: MindFusion.Diagramming
File: DiagramItem.js
JavaScript Copy Code |
---|
get hyperLink() {} |
String
A string containing hyperlink URL.
This is just a data property, and clicking an item whose hyperlink is set does not automatically open the target page. If that's required, you could call window.open fron nodeClicked or linkClicked event handlers.
Another way to associate hyperlinks with items is by embedding <a> elements in text when enableStyledText is set to true. The control raises hyperlinkClicked event when users click on such embeded hyperlinks.
JavaScript Pack Programmer's Guide | © 2024 MindFusion |