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

Changing fromMaxLinks programatically

$
0
0

@jbottel wrote:

My application has settings that specify how many links out of a node are allowed for a given node.

My code for modifying the possible number of links out looks like this:

goDiagram.startTransaction();
goDiagram.findNodeForKey(updatedNode.key).fromMaxLinks = updatedNode.numOfPaths
goDiagram.commitTransaction();

Ultimately, this code doesn't seem to change the number of links allowed; the number of links remains at the amount that was originally specified in the Node template.

Is this the proper way to do this? Or am I missing something?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles