#1386 Adding support for click events and links

This commit is contained in:
Knut Sveidqvist
2020-05-06 18:51:12 +02:00
parent a20e6086cc
commit 9a3ec31191
7 changed files with 87 additions and 75 deletions

View File

@@ -41,7 +41,14 @@
</div>
<div class="mermaid" style="width: 50%; height: 20%;">
flowchart LR
id1[[This is the text in the box]]
A{{A}}-->B{{B}};
click A callback "Tooltip"
click B "http://www.github.com" "This is a link"
</div>
<div class="mermaid" style="width: 50%; height: 20%;">
flowchart LR
A{{A}}-->B{{B}};
</div>
<div class="mermaid2" style="width: 50%; height: 20%;">
@@ -263,8 +270,9 @@ stateDiagram-v2
// sequenceDiagram: { actorMargin: 300 } // deprecated
fontFamily: '"arial", sans-serif',
curve: 'linear',
securityLevel: 'loose'
});
</script>
function callback(){alert('It worked');}
</script>
</body>
</html>