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

Add an extra property in the linkData during link creation

$
0
0

@pistolShrimp wrote:

Hi Walter,
I want to add an extra property in the linkData before inserting into linkDataArray during link creation.
This extra property is then bound with some property of the link(like color, opacity, etc. ) How can I achieve this?

During data population, we can do this:

linkDataArray.push({
"from": parent,
"to": key,
"fromPort" : parent,
"toPort" : key,
"someExtraProp" : 0
});

But during link creation too, i want some default value for that extra property.

Thanks,

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6976