State Diagram: On-hover / link over the entire state

0 votes
asked Sep 16, 2023 in Question / help by pillaimanish (120 points)
Problem statement: I want to show some features (or descriptions) over the state diagram, but not as description in the box. It should be shown, whenever I hover on it. One close feature I got was of HREF. But that do works on a word. That is, when I hover on a particular word, it shows the link on a small pop up type thing.

I want to implement the same thing on hovering over a state. How can I do that using href? Or is there any other way for the same?

1 Answer

0 votes
answered Sep 17, 2023 by The-Lu (65,440 points)

Hello P., and all,

For that you can use link and tool-tip, as:

@startuml
state state1 [[http://plantuml.com/link]]
state state2 [[http://plantuml.com/state{this is a tooltip\nand a link to "plantuml/state"}]]
note left [[http://plantuml.com]]
a note
and a link
to ""plantuml.com""
end note

[*]--> state1
state1 --> state2
@enduml


Voir lien SVG

See doc. here (and I can add this example on):

Enjoy,
Regards,
Th.

...