Adding pop-up windows on word hover

+1 vote
asked Mar 2, 2017 in Wanted features by anonymous
Hello,

I have a similar whish. Could we add a pop un windows with some explanation on word or object hover? For example, I have a class name or a parameter name. I would like to tell a bit more about it but, in order to not mess with my UML diagramme, it should be displayed only when the pointer of the mouse is above this name (on a new window, above the main picture, next to the name).
It is possible to do that on pdf documents:

https://answers.acrobatusers.com/create-a-popup-window-when-hovering-over-a-word-q119135.aspx

I suppose it is also possible with .svg files... but i'm not sure how it works.

Thanks a lot for your work! Great tool already!

1 Answer

+1 vote
answered Mar 2, 2017 by plantuml (295,000 points)

There is something close to what you are looking for, but that we should probably improve.

Today, you can use hyperlinks. For example:

@startuml
class foo {
You should visit [[http://plantuml.com]] for information
You should visit [[http://plantuml.com our web site]] for information
You should visit [[http://plantuml.com{This is a tip} our web site]] for information
}
@enduml

http://www.plantuml.com/plantuml/svg/dOmn2e0m40HxNx4lqDvts8XOnAZa8Cc5t4KByU_c1ugmR3KprXiHxCoucf4Bn77nAmuIKaoJKqrzroLlefRWMyjXdYkUGR5-C4eSFuhWad5k2ogn_QvSWoD1dO5Ikj-YzmC0

(Note that we have a bug here : link cannot be at the beginning or at the end of a line)

By chance, this is working with zero length url, so you can have:

@startuml
class foo {
Some [[{This is a tip on the field} field]] of the class
}
@enduml

http://www.plantuml.com/plantuml/svg/Iyv9B2vMIClFLwZc2ixFJLM8ZguEoSWiLW2YH8MIp0A5_3o5aenKXRJCr9oKMWWL6wkGdmOMJGPfvwe50000

This is quite limited right now, but you are looking for something like that, we can improve it.

 

commented Jun 26, 2019 by Preetika Tandon
Are you guys planning to have this pop up window when hovered over a word in plantuml?
commented Apr 11 by jtampier (100 points)
To have a simple tooltip is nice, but having one with additional information, only visible on hover, would be great for viewing in browser.
Let's say we have a note on every member in a class diagram, that contains a brief description of it and perhaps a link to one or more requirements, that motivated that method. This get's ugly quickly if they are all displayed at the same time.

This has several problematic prerequisites:

1. The relationship between the member and the note has to discernible from the structure.

2. It can likely not be solved with a :hover class, because the note is not a child element of the member. Although this might be possible with a common class name.
...