Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit the node and add Dynamic Output connection number. #900

Open
Abvani-0204 opened this issue Sep 17, 2024 · 1 comment
Open

Edit the node and add Dynamic Output connection number. #900

Abvani-0204 opened this issue Sep 17, 2024 · 1 comment

Comments

@Abvani-0204
Copy link

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.

@jerosoler
Copy link
Owner

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 removeSingleConnection

You can get the node data with getNodeFromId.

Regards, Jero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants