Ability to add a label to a group in nwdiag

0 votes
asked Sep 3 in Wanted features by rremer (140 points)

It'd be great to be able to add a label to a group in nwdiag 

Something like "group : label  {" or just "group label  {"

Group example

1 Answer

0 votes
answered Sep 4 by The-Lu (8,340 points)

Hello all,

In the same way, perhaps add also, for the group element:

  • description;
  • shape.

Like:

@startuml
nwdiag {
  // define group at outside network definitions
  group grouplabel  {
    color = "#FF7777";
    description = "long group label";
    shape = node;

    web01;
    web02;
    db01;
  }

  network dmz {
    web01;
    web02;
  }
  network internal {
    web01;
    web02;
    db01 [address = ".101", shape = database];
  }
}
@enduml

→ Link to PlantUML online server.

That is only a proposal,

Regards,
Th.

...