mermaid icon indicating copy to clipboard operation
mermaid copied to clipboard

how to use hyperlink in state diagrams

Open ramstein74 opened this issue 5 years ago • 3 comments

Hello in flowchart you have a description about using css and event callbacks. But in state diagrams you dont. Can i have in a state diagram a link from a node do another htlml page ? how ? Or change css colors? how ?

regards

ramstein74 avatar Dec 12 '19 12:12 ramstein74

I'm not sure if this is a html update work or feature needs to be added. I can work on this issue if it's a html update or minor styling feature update.

Genne23v avatar Oct 06 '22 22:10 Genne23v

@Genne23v / @yurtsiv If you want to give this a try, look at how interactions are handled in flowchart and class diagrams.

You'll mainly have to make changes in the jison file, db and renderer.

jgreywolf avatar Mar 07 '23 15:03 jgreywolf

Would be nice to have the "click" action tag for the stateDiagram too.

I'm building quite a number of these that are "stacked" in a way. Would use the click to zoom into some state for extra details. At the moment i have to hack around that and have links under the diagram which is pretty annoying.

Also using this in mkdocs, so i really don't want to have to hack into things as proposed in #919.

CosteaPaul avatar Mar 21 '24 13:03 CosteaPaul