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

+1 vote
answered Mar 11, 2015 by plantuml (294,960 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!
commented Jun 4, 2019 by Wxll (100 points)

Is there an example for adding salt into a note?

note "{{
salt
{ [ Ok ] } 
}}
" as test

I can't get this proper to work.

The legend works excellent btw :-)

Wxll

commented Jun 4, 2019 by Wxll (100 points)
Wouw! Awsome!! thank you, from all the note types I just picked the wrong one :-)

Thank you!
...