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

Draggable and Deleteable #120

Open
d-sooter opened this issue Nov 22, 2024 · 0 comments
Open

Draggable and Deleteable #120

d-sooter opened this issue Nov 22, 2024 · 0 comments

Comments

@d-sooter
Copy link
Contributor

It would be really cool to be able to set some nodes as Draggable = false and Deletable = false in order to be able to lock specifc nodes (like an input node). I know React flow supports it so i cant image that it would be so hard. Im happy to create a PR to implement it but would love just to get a direction as to where i can implment it and save time searching.

My idea would be to implement it two steps.

  1. Allow setting the those values via graph json
"nodes": [
    {
      "id": "d55648c2-7d7c-48aa-8d8c-bfa04c7c1bef",
      "name": "request",
      "position": {
        "x": 0,
        "y": 0
      },
	  "draggable": false,
	  "deletable":false,
      "type": "inputNode"
    },
  1. Consider adding it to the node context menu (not sure if this is the right idea)

Thanks in advance

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

1 participant