mermaid icon indicating copy to clipboard operation
mermaid copied to clipboard

Sequence diagram request: Grouping interactions in own defined group

Open FadySalama opened this issue 4 years ago • 4 comments

Proposed feature

I would really like to group a number of interactions in my own defined group as shown in the image below image

A possible syntax for the implementation would be:

sequenceDiagram
    participant Alice
    participant Bob
    participant Charl

    group label [description]
       Alice-> Bob: hello
       Alice-> Charl: hi
       Charl-> Alice: Hello there
    end

FadySalama avatar Nov 11 '20 13:11 FadySalama

👍 This would be nice.

grese avatar May 11 '21 06:05 grese

👍

kevin-denver avatar Mar 21 '22 20:03 kevin-denver

👍

anomam avatar Jul 11 '22 08:07 anomam

I am using critical as a work around

sequenceDiagram
    participant Alice
    participant Bob
    participant Charl

    Alice-> Bob: hello
    critical label
       Alice-> Charl: hi
       Charl-> Alice: Hello there
    end
sequenceDiagram
    participant Alice
    participant Bob
    participant Charl

    Alice-> Bob: hello
    critical label
       Alice-> Charl: hi
       Charl-> Alice: Hello there
    end

lukas-tide avatar Apr 25 '24 07:04 lukas-tide