Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokozuna59 committed Jan 25, 2024
1 parent c7eaee0 commit 47a6ce4
Show file tree
Hide file tree
Showing 2 changed files with 341 additions and 332 deletions.
9 changes: 9 additions & 0 deletions docs/config/setup/interfaces/mermaidAPI.RenderResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@

`Optional` **bindFunctions**: (`element`: `Element`) => `void`

Bind function to be called after the svg has been inserted into the DOM.
This is necessary for adding event listeners to the elements in the svg.

```js
const { svg, bindFunctions } = mermaidAPI.render('id1', 'graph TD;A-->B');
div.innerHTML = svg;
bindFunctions?.(div); // To call bindFunctions only if it's present.
```
#### Type declaration
▸ (`element`): `void`
Expand Down
Loading

0 comments on commit 47a6ce4

Please sign in to comment.