Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable html in label #96

Closed
DataStrategist opened this issue Sep 16, 2016 · 6 comments
Closed

enable html in label #96

DataStrategist opened this issue Sep 16, 2016 · 6 comments

Comments

@DataStrategist
Copy link
Contributor

This one is easy! :)

I want to embed links in the network. Theoretically, I can use either the tooltip or the title.
image

Tooltip: I can embed html, but when I move my mouse to hover over the tooltip, the tooltip moves and therefore I can't click on the link!
title: HTML is not enabled

Maybe the easiest would be to just offer HTML embedding in the title?

@bthieurmel
Copy link
Contributor

No easy, and not for me but for vis.js. Can already find issue for this (almende/vis#1936). Actually no solution.

@DataStrategist
Copy link
Contributor Author

Ajj.. a pity. What about specifying the tooltip "pops up" location? Or implementing a delay? It seems the tootip behavior on vis.js is different than ours? almende/vis#1435 makes it look possible... not sure for visNetwork tho?

@bthieurmel
Copy link
Contributor

Yes, think it's possible with some modification. I'll have a look.

@bthieurmel
Copy link
Contributor

bthieurmel commented Oct 5, 2016

Done in new 1.0.3 on github, for tootip, adding a delay. You can test.

nodes <- data.frame(id = 1:3, title = '<a target="_blank" href="http://www.w3schools.com">Visit W3Schools</a>')
edges <- data.frame(from = c(1,2), to = c(1,3))

visNetwork(nodes, edges)

@DataStrategist
Copy link
Contributor Author

Confirmed! Works in Chrome, IE and Edge! Nice job, and thanks!

@wodsworth
Copy link

How to have different links for each node?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants