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

Check currently how many nodes are there in the canvas #616

Closed
Ashvi213 opened this issue Dec 19, 2022 · 2 comments
Closed

Check currently how many nodes are there in the canvas #616

Ashvi213 opened this issue Dec 19, 2022 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@Ashvi213
Copy link

I have dynamic popup on each nodes. So I need to drag one node and on double click need to fill the pop up. If I don't fill the popup the dragging of next node must be restricted. If there any provision to check how many nodes are there in the canvas before I am dragging the next node.

@paulohenriquesg
Copy link

I'm not sure if this is the definitive answer, but you can use the following to get a nodeList:

document.querySelectorAll(".drawflow-node ");

@jerosoler
Copy link
Owner

Hi!

Other alternative to get nodes from module.

console.log(editor.drawflow.drawflow[editor.module].data);

@jerosoler jerosoler self-assigned this Dec 19, 2022
@jerosoler jerosoler added the question Further information is requested label Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants