jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.78k stars 741 forks source link

Dynamically change Node and connection colors #551

Open reshmakarunan opened 2 years ago

reshmakarunan commented 2 years ago

Hi,

I want to achieve two below functionalities in Drawflow diagram

  1. Nodes and connectors with different colors (can change dynamically based on condition. Need to alter the existing json with same html for all nodes. Nodes are not having sub boxes as shown in the image. That is just a sample image)
  2. Information icon in the diagram. On click on icon, I can show some information

I have attached one sample diagram. Please help.

Thanks in advance

image

jerosoler commented 2 years ago

You can see in the demo.

As there is a node of different colors. The connections are already more complicated.

You can also see the dlbclick node that when you double click a popup pops up.

image