-
Notifications
You must be signed in to change notification settings - Fork 62
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
Adding pop-up boxes to nodes #82
Comments
You can do this using the tooltip, which you can put arbitrary html into. On the released version whatever you set the For example if you look at the Text on Node example then on the released version you could make the lines look like this:
And on the master branch you could accomplish this like this:
|
When I use the set_tooltip_source() method, I get the following error.
So I tried the following, the tooltip is not working.
|
I would put the content in 'tooltip' in 'name' instead. Then add another attribute to display what you originally put in name. You can use the attribute set_style to accomplish this. Check out the Text on Node example. Just change 'content' in 'css' from 'data(name)' to 'data(display_name)' or whatever you decide to name it. |
I used this code as ery010 suggested.
Then I got this image. It seems that display_name is not rendered. |
You'll have to change the style. Here is the code from the Text on Node example I mentioned, but I changed the content to display the 'display_name'
|
This is because the Binder is using the most recent release (no I'm not sure if its desirable but I think the binder could be made to use the master branch by removing ipycytoscape from the installs and adding a
Nice! That's clever |
The |
Can be closed? |
Yes. Thanks @sven5s |
Is there a way to add a text-box containing clickable urls to a node with json? Specifically, I want to be able to click on any node on my graph, and have some kind of box that contains a link. I see this feature on the cytoscape.js cola example, but I cannot replicate this on ipycytoscape.
The text was updated successfully, but these errors were encountered: