Skip to content

Commit

Permalink
Merge 355b471 into b651be7
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Jun 12, 2023
2 parents b651be7 + 355b471 commit 6fb10ce
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
11 changes: 10 additions & 1 deletion docs/syntax/flowchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ flowchart LR
> **Note**
> The id is what is displayed in the box.
> **💡 Tip**
> Instead of `flowchart` one can also use `graph`.
### A node with text

It is also possible to set text in the box that differs from the id. If this is done several times, it is the last text
Expand Down Expand Up @@ -785,7 +788,11 @@ This feature is applicable to node labels, edge labels, and subgraph labels.

## Interaction

It is possible to bind a click event to a node, the click can lead to either a javascript callback or to a link which will be opened in a new browser tab. **Note**: This functionality is disabled when using `securityLevel='strict'` and enabled when using `securityLevel='loose'`.
It is possible to bind a click event to a node, the click can lead to either a javascript callback or to a link which will be opened in a new browser tab.

```info
This functionality is disabled when using `securityLevel='strict'` and enabled when using `securityLevel='loose'`.
```

click nodeId callback
click nodeId call callback()
Expand Down Expand Up @@ -1077,7 +1084,9 @@ You can change the renderer to elk by adding this directive:

%%{init: {"flowchart": {"defaultRenderer": "elk"}} }%%

```info
Note that the site needs to use mermaid version 9.4+ for this to work and have this featured enabled in the lazy-loading configuration.
```

### Width

Expand Down
12 changes: 11 additions & 1 deletion packages/mermaid/src/docs/syntax/flowchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ flowchart LR
The id is what is displayed in the box.
```

```tip
Instead of `flowchart` one can also use `graph`.
```

### A node with text

It is also possible to set text in the box that differs from the id. If this is done several times, it is the last text
Expand Down Expand Up @@ -494,7 +498,11 @@ This feature is applicable to node labels, edge labels, and subgraph labels.

## Interaction

It is possible to bind a click event to a node, the click can lead to either a javascript callback or to a link which will be opened in a new browser tab. **Note**: This functionality is disabled when using `securityLevel='strict'` and enabled when using `securityLevel='loose'`.
It is possible to bind a click event to a node, the click can lead to either a javascript callback or to a link which will be opened in a new browser tab.

```info
This functionality is disabled when using `securityLevel='strict'` and enabled when using `securityLevel='loose'`.
```

```
click nodeId callback
Expand Down Expand Up @@ -737,7 +745,9 @@ You can change the renderer to elk by adding this directive:
%%{init: {"flowchart": {"defaultRenderer": "elk"}} }%%
```

```info
Note that the site needs to use mermaid version 9.4+ for this to work and have this featured enabled in the lazy-loading configuration.
```

### Width

Expand Down

0 comments on commit 6fb10ce

Please sign in to comment.