Determining Whether a Hyperlink in an HTML-coded Label Text has been Clicked
Applies to: yFiles 2.5 print article email article

Type: Tips & Tricks

Support for hyperlinks in HTML-encoded label text.

If a label text is specified using HTML, i.e., starting with the <html> prefix, the attached demo presents how an application can determine whether one of the hyperlinks has been clicked.

The demo uses a customized view mode to listen for clicks, performs a hit test on labels, and then determines on what HREF element within the HTML label the click actually occurred on.


Keywords: hyperlink - hit - hit-test - HTML - label - href - view - mode - view mode - click

Provide feedback:
How useful was this article?    less 1 2 3 4 5 more
Email address (optional):
COPYRIGHT © 2008 yWorks · ALL RIGHTS RESERVED imprint | top | home