Can you add salt in a legend?

0 votes
asked Mar 10, 2015 in To be sorted by anonymous
Is it possible to have something like:

@startuml

foo->Bar

legend left

salt

{ .. tree defintion here }

end legend

@enduml

1 Answer

0 votes
answered Mar 11, 2015 by plantuml (194,950 points)
 
Best answer

This is not documented, but some syntax allows to include diagram into another diagram, using double-bracket {{ and }}.

You can have:

foo->Bar
legend left
{{
salt
{
  Login    | "MyName   "
  Password | "****     "
  [Cancel] | [  OK   ]
}
}}
end legend

Is this what you are looking for ?

commented Mar 11, 2015 by anonymous
Perfect! Thanks!
...