Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Using Linkable Ports with Dragging and Dropping Fields

$
0
0

@dustinormond wrote:

I have implemented the code where I can drag and drop fields from one node to another or within a node by following this: https://gojs.net/latest/samples/dragDropFields.html. Also, I am able to drag ports from one field to another using fromLinkable and toLinkable; however, I can’t seem to figure out how to implement both at the same time. One thought is to just hold down a specific keyboard key (i.e. ctrl, alt, or shift) to drag and drop and not hold down the keyboard key to connect ports. I have tried with no success. I thought about adding this keyboard shortcut somewhere in this code:

FieldDraggingTool.prototype.doActivate = function() { ... }

Any thoughts? I am open to other ideas as well.

Thanks in advance. Here is what the current diagram looks like.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles