Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7420

Binding value to geometryString in link template

$
0
0

@Tany wrote:

Hi,
I'm trying to bind value to geometryString in link template but it does not bind.
Here is the code,
Please advise.

var linkDataArray = [
{ from: "4", to: "1", xx: "M0 0 L1 0" },
{ from: "4", to: "3", xx: "M0 0 M3 0 L6 0 M3 3 L6 3" },
{ from: "4", to: "2", xx: "M0 3 L1 0 3 6 4 3" }
];

diagram.linkTemplate = $(go.Link,
{
routing: go.Link.Normal,
corner: 5
},
$(go.Shape,
{
isPanelMain: true, stroke: "transparent", strokeWidth: 3,
pathPattern :
$(go.Shape, new go.Binding("geometryString", "xx"), { stroke: "red" })
}
) // the link shape
);

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7420

Trending Articles