Is there a way to specify the xlink:title attribute in the generated SVG?

0 votes
asked Sep 28, 2016 in To be sorted by anonymous
Is there any way in the PUML file to specify a title for the SVG link? This shows up as a tooltip in browsers when you hover over the item in the diagram. I tried specifying the title after the link ([[link title]]), but this didn't work for me (either from the API or from the command-line- same version).

Thanks. Still loving PlantUML!

1 Answer

0 votes
answered Sep 28, 2016 by plantuml (295,000 points)

You can use the following syntax:

@startuml
Bob -> Alice : hello [[http://www.google.com{this is a tooltip} title]]
@enduml

Result:

http://www.plantuml.com/plantuml/svg/SyfFKj2rKt3CoKnELR1Io4ZDoSbNY8xEA2afiDBNBoylrqlFpq_FITLBpi-jBid8B5O0eaI5alpyd9BCWbg5aioIdDJOM000

Is this what you are expecting ?

commented Sep 28, 2016 by anonymous
Perfect! Thank you.
...