We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Kindly help me to add restriction so that user cannot delete first dragged node. Have a look in the code tried this but its not working.
mythis.editor.on("nodeRemoved", (id) => { if(id == 0){ this.toast.error("Cannot remove") return false; } })
The text was updated successfully, but these errors were encountered:
View:
Sorry, something went wrong.
you can set a display: none; in the drawflow-delete class.
display: none;
in my case I used the nodeMoved event to change the value of my css variable
nodeMoved
JS
this.editor.on("nodeMoved", function() { document.documentElement.style.setProperty('--dfDeleteDisplay', 'none'); });
CSS
:root { --dfDeleteDisplay: 'block'; } .drawflow-delete { display: --dfDeleteDisplay; }
jerosoler
No branches or pull requests
Kindly help me to add restriction so that user cannot delete first dragged node.
Have a look in the code tried this but its not working.
mythis.editor.on("nodeRemoved", (id) => {
if(id == 0){
this.toast.error("Cannot remove")
return false;
}
})
The text was updated successfully, but these errors were encountered: