@tejbir wrote:
Hi,
Below is my linkTemplate code. I want to remove picture from linkTemplate. How can i achieve this?
mainDiagram.linkTemplate =
$go(go.Link,
{
routing: go.Link.AvoidsNodes,
curve: go.Link.JumpOver,
corner: 5,
toShortLength: 4,
selectable: false,
layoutConditions: go.Part.LayoutAdded | go.Part.LayoutRemoved,
// links cannot be selected, so they cannot be deleted
// If a node from the pallette is dragged over this node, its outline will turn green
mouseDragEnter: function(e, link) { link.isHighlighted = true; },
mouseDragLeave: function(e, link) { link.isHighlighted = false; },
// if a node from the Palette is dropped on a link, the link is replaced by links to and from the new node
mouseDrop: dropOntoLink
},
$go(go.Shape, linkShapeStyle()),
$go(go.Picture,AddImageStaticResource),
$go(go.Shape,
{ toArrow: "standard", stroke: null, fill: "Grey" })
)Thanks in advance.
Posts: 4
Participants: 2