jerosoler / Drawflow

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

How can I set each connection names and ID #190

Closed Yusufzai closed 3 years ago

Yusufzai commented 3 years ago

If I have two or more connections in any data widget I want to define a name and ID.

For example

First connection -> If the given condition is true then it will send a link.

Second connection -> If the given condition is false then it will send a Unique code.

This will help the end-user to understand the workflow.

Screenshot_4

Yusufzai commented 3 years ago

Something link in Twilio the condition is mentioned so anyone can understand.

Screenshot_3

Any help ASAP would be appreciated

jerosoler commented 3 years ago

Hello @Yusufzai

Maybe this can help you https://github.com/jerosoler/Drawflow/issues/18#issuecomment-666954819

It's something like this, what do you want?

Jero

Yusufzai commented 3 years ago

A suggesting/idea

Well, I think it will better to add a parameter in the addNode function to define a single [sting] or multiple [array] names.

jerosoler commented 3 years ago

I plan to add this https://github.com/jerosoler/Drawflow/issues/45#issuecomment-701554099 ;)

Yusufzai commented 3 years ago

Well Sounds Good :)

gunasekharravilla commented 3 years ago

If I have two or more connections in any data widget I want to define a name and ID.

For example

First connection -> If the given condition is true then it will send a link.

Second connection -> If the given condition is false then it will send a Unique code.

This will help the end-user to understand the workflow.

Screenshot_4

Hello @Yusufzai please share the repo link for the interface which you shared in screenshot

Yusufzai commented 3 years ago

@gunasekharravilla Sorry I can't its an internal corporate app.

gunasekharravilla commented 3 years ago

ok no problem @Yusufzai i developed my own design its working fine