Add Id to Flowchart Links - Enable interactions and classes #4794
Labels
Area: Development
Contributor needed
Graph: Flow
Internals: Database
Internals: Parser
Internals: Renderer
Status: Approved
Is ready to be worked on
Type: Enhancement
New feature or request
Proposal
I know it is possible to style Links with the syntax below but it would be useful to add interactions and use classes as well.
linkStyle 1 stroke:#ff3,stroke-width:4px,color:red;
https://mermaid.js.org/syntax/flowchart.html#styling-links
Would be good with a uniform solution for styling and also the possibility to interact with Links like the issue below:
Like this issue: #2305
Example
A suggestion would be to use a similar syntax as
subgraph
withsubgraph ide1 [one]
.It would then look something like this:
A--textid [text]-->B
You could then add a click like this:
click textid callback "Tooltip for a callback"
Screenshots
No response
The text was updated successfully, but these errors were encountered: