@running_randall wrote:
I'm trying to dynamically assign stroke dashing via data binding:
myDiagram.linkTemplate = // for parent-child relationships $(go.Link, { routing: go.Link.Orthogonal, curviness: 5, layerName: "Background", selectable: false, fromSpot: go.Spot.Bottom, toSpot: go.Spot.Top }, $(go.Shape, { strokeWidth: 2, strokeDashArray : [] }, new go.Binding("strokeDashArray", "d", function(v){ return v ? [5,5] : [0,0]; })) );
My data has a property of d. If it exists and is true I'm expecting the strokeDashArray value to be [5,5] but it's not assigning it, no dashes no matter the value of data.d. I can confirm the data does have a d value exactly where I want it.
Any help is appreciated.
Thanks!
Posts: 4
Participants: 2