You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Edit the node and add Dynamic Output connection number. #900
Hi @jerosoler , First of all, Thanks So much for this wonderful library.
I am wondering if there is any method which can be used to edit any node and change the number of its output connection dynamically based upon my condition.
Activity
jerosoler commentedon Sep 17, 2024
Hi,
Thanks.
You can use the following methods:
addNodeInput,addNodeOutput,removeNodeInput,removeNodeOutput.Here is more information on how to apply: https://github.com/jerosoler/Drawflow#methods
You may have to remove the connections first if they exist. They can be deleted with
removeSingleConnectionYou can get the node data with
getNodeFromId.Regards, Jero