@Bharath01 wrote:
Hi,
- 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”}
- 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