adrai / flowchart.js

Draws simple SVG flow chart diagrams from textual representation of the diagram
http://flowchart.js.org/
MIT License
8.54k stars 1.21k forks source link

Open modal popup when clicked on node. #238

Closed SudhirFaurecia closed 2 years ago

SudhirFaurecia commented 2 years ago

How can we open different modal(bootstrap) popups for every node we click. ex : If we click on "leather defect marking" it should open an modal popup containing image (with some links) which explains leather defect marking process. same if we click on "Foam Injection" it should open an modal popup containing image (with some links) which explains foam injection process.

See image. image

adrai commented 2 years ago

you can define links, like: st=>start: Start:>http://www.google.com[blank]

So just define a link containing some sort of identifier for your own page that shows up your modal... i.e. http://localhost:8080/modal?component=start