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

How can I hide remove button? #5

Closed
SoohyunFantasticJo opened this issue Mar 3, 2019 · 1 comment
Closed

How can I hide remove button? #5

SoohyunFantasticJo opened this issue Mar 3, 2019 · 1 comment

Comments

@SoohyunFantasticJo
Copy link

Dear Gwenaelp,
This is SJ, an senior researcher in Korea.

I have a question about vue-diagreams.
How can I hide remove button?

https://github.com/gwenaelp/vue-diagrams/raw/master/images/example1.png

A node "Test3" does not have remove button in demo image as above. But the others have it.
I can't find source code for to hide it.

Thank you,
SJ.

@manjitp46
Copy link

Hi
You can hide remove icon by setting deletable property of node to false.
Example:
const node2 = diagramModel.addNode("test", 10, 300, 144, 80);
const node2OutPort = node2.addOutPort("testOut");
node2.addOutPort("testOut2");
node2.color = "#00cc66";
node2.deletable = false;

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

3 participants