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

Binding of itemArray removes Links

$
0
0

@malte wrote:

Cheers,

in my project I'm using a binding to the itemArray to create a bunch of ports for a node. The array is not directly linked, but computed by the converter function. However, triggering the binding removes all existing links to ports inside the items.

So it's something like:

new go.Binding("itemArray","", function(v,n){
  arr = [];
  //now fill it
  return arr;
})

If I change it so it does not create a new array and the references stay the same, the connected links don't vanish. However, the template for the ports is not updated as the references have not changed -.-

The ports created have the same id and stuff, so there is actually no reason for the links to disappear. I think that updating the template first removes everything and propagates that to the links before creating the new content.

Any thoughts on this?

Many Thanks,
Malte

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles