mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-14 01:34:19 +01:00
Merge pull request #1323 from Pepper-Wood/bug/1294_nonfunctioning_callback_in_docs
Docs workaround for failing callback() section
This commit is contained in:
@@ -428,7 +428,7 @@ Examples of tooltip usage below:
|
|||||||
var callback = function(){
|
var callback = function(){
|
||||||
alert('A callback was triggered');
|
alert('A callback was triggered');
|
||||||
}
|
}
|
||||||
<script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -448,6 +448,8 @@ graph LR;
|
|||||||
```
|
```
|
||||||
> **Success** The tooltip functionality and the ability to link to urls are available from version 0.5.2.
|
> **Success** The tooltip functionality and the ability to link to urls are available from version 0.5.2.
|
||||||
|
|
||||||
|
?> Due to limitations with how Docsify handles JavaScript callback functions, an alternate working demo for the above code can be viewed at [this jsfiddle](https://jsfiddle.net/s37cjoau/3/).
|
||||||
|
|
||||||
Beginners tip, a full example using interactive links in a html context:
|
Beginners tip, a full example using interactive links in a html context:
|
||||||
```
|
```
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user