Skip to content

Disable Edge or Node Separatly #261

Closed

Description

@Malikx-Alee

Is their any way to disable the drag behavior of the Edge or Node separately ? Currently if we define graph as read only it disable movement of all items on the graph. @ajbogh

Activity

  1. ajbogh commented on Aug 27, 2020

    @ajbogh
    Contributor

    You can pass a canCreateEdge and canSwapEdge function that returns false when the user can't draw or drag edges. You can also pass your own renderNode function that returns null when it shouldn't render a node. Perhaps you would like to extend the "can" functions to include other things, like "canDragNode", "canCreateNode", "canSelectNode", and "canSelectEdge".

    If you're willing to submit a PR, we would appreciate the support.

  2. man-person commented on Oct 21, 2020

    @man-person

    any news with this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions