Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48737

Re: Hyperlink not clickable with custom visual.

$
0
0

The following code worked for me while trying to create a custom visual that have a Resolve link which redirects to an API on click. I used the default YourVisual template and added the link as 

tr.selectAll("td")
.data(d=> d)
.enter().append("td")
.attr('data-th',(d, i) => viewModel.categories[i].value)
.text(d => this.format(d)).append('a')
.attr("href", "https://www.google.com")
.attr("target","_top")
.text(" Resolve");

 

Hope this helps.


Viewing all articles
Browse latest Browse all 48737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>