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

Link Template make two way does not work

$
0
0

@Bharath01 wrote:

Hi,

  1. I was facing two issues in this code. i made it two way but when i update High property with another colour , it is not getting updated untill i use “diagram.updateAllTargetBindings” .

this.(go.Link, { curve: go.Link.Bezier, relinkableFrom: true, relinkableTo: true, toShortLength: 3, toEndSegmentLength: 40, fromEndSegmentLength: 40 }, this.(go.Shape, // the link shape
{ stroke: “gray” },
new go.Binding(“stroke”, “High”).makeTwoWay()
),
this.$(go.Shape, { toArrow: “Standard” }, new go.Binding(“fill”, “High”).makeTwoWay())
);
eg: modellinkArray i am using { from: srcTableName, to: tgtTableName, fromPort: srcColName, toPort: tgtColName,High:“red”}

  1. i want to validate the property in two way i am unable to make it.
    eg:
    “”"
    modellinkArray i am using { from: srcTableName, to: tgtTableName, fromPort: srcColName, toPort: tgtColName,High:true}

this.$(go.Shape,
{ stroke: “gray” },
new go.Binding(“stroke”, “High”).makeTwoWay((n)=> {return “red”};) // i want to validate here
),

“”"
Please make it done.Thanks.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles