mermaid
mermaid copied to clipboard
how to use hyperlink in state diagrams
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
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 / @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.
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.