bramp / js-sequence-diagrams

Draws simple SVG sequence diagrams from textual representation of the diagram
https://bramp.github.io/js-sequence-diagrams/
BSD 2-Clause "Simplified" License
7.81k stars 1.08k forks source link

Support for onclick event #178

Open FilNil opened 7 years ago

FilNil commented 7 years ago

Hi, im wondering if there is a way to get an onclick event when clicking on a message (arrow with text).

Chetabahana commented 6 years ago

We can use this code:

$('svg g.signal').css('cursor','pointer').click(function(e){
--> your code
});

You may check how it works here: https://jsfiddle.net/chetabahana/rrxnah40/

Integrated Sequence, FlowChart & Railroad Diagrams | Chetabahana Project