Update flowchart.md

fix callback by setting the window callback to the respective callback function in the jsfiddle and code sample
This commit is contained in:
GRASBOCK 2024-05-13 21:16:12 +07:00 committed by Sidharth Vinod
parent a2e3b4ca06
commit 9a11cb7bb3
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD

View File

@ -557,7 +557,7 @@ Examples of tooltip usage below:
```html
<script>
const callback = function () {
window.callback = function () {
alert('A callback was triggered');
};
</script>
@ -578,7 +578,7 @@ flowchart LR
> **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/Ogglas/2o73vdez/7).
?> 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/yk4h7qou/2/).
Links are opened in the same browser tab/window by default. It is possible to change this by adding a link target to the click definition (`_self`, `_blank`, `_parent` and `_top` are supported):
@ -610,7 +610,7 @@ Beginner's tip—a full example using interactive links in a html context:
</pre>
<script>
const callback = function () {
window.callback = function () {
alert('A callback was triggered');
};
const config = {