Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Adding pop-up windows on word hover

0 votes
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!
asked Mar 2 in Wanted features by anonymous

1 Answer

0 votes

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.

 

answered Mar 2 by plantuml (111,340 points)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...