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

Clicking on button in palette to start drawing a new link

$
0
0

@zeineb wrote:

now i add a button on the link in the palette,what i want to do is when i click on this button it allows me to link 2 classes
i use this function to draw links:

function drawLink(e, button) {
      var node = button.part.adornedPart;
      var tool = e.diagram.toolManager.linkingTool;
      tool.startObject = node.port;
      e.diagram.currentTool = tool;
      tool.doActivate();
    }

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles