Skip to content

Commit ce7cfdb

Browse files
authored
fix: doc
1 parent 2ee770b commit ce7cfdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ It is possible to customize the diagram by passing options to the component. The
149149

150150
## Click events
151151

152-
You can register click events by declaring them in the diagram string. See [the Mermaid docs](https://mermaid-js.github.io/mermaid/#/flowchart?id=interaction) for details. When registering a callback, you do not need to specify the callback name, the component will magically inject it into the diagram by itself. Implement the `node-click` event handler to react to click events:
152+
You can register click events by declaring them in the diagram string. To react to a click event, you need to declare it in the diagram via a `click <nodeId>` declaration. See [the Mermaid docs](https://mermaid-js.github.io/mermaid/#/flowchart?id=interaction) for details.
153+
154+
When registering a callback, you do not need to specify the callback name, the component will magically inject it into the diagram by itself. Implement the `node-click` event handler to react to click events:
153155

154156
```html
155157
<template>

0 commit comments

Comments
 (0)