jerosoler / Drawflow

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

How to hide the X button on the connection node_selected #700

Open ArG97 opened 1 year ago

ArG97 commented 1 year ago

image

Hey @jerosoler , i want to hide the specific line x delete button, it would be helpful if you give me an idea. I want to hide it only for this node

jerosoler commented 1 year ago

Try event clickEnd and function to hide connection: editor.contextmenuDel()

With clickEnd get info connection to determine show or hide button.

View example of clickend event.

ArG97 commented 1 year ago

thanks jero for the guide but it hides all the connection x delete button but i want only that particular node only...

jerosoler commented 1 year ago

Filter by classname on clicked

ArG97 commented 1 year ago

Thanks @jerosoler !