@pratap wrote:
for problem bold/commented text in below code
GoJs(go.Link,
{
routing: go.Link.AvoidsNodes,
curve: go.Link.JumpOver,
corner: 5, toShortLength: 4}, GoJs(go.Shape, { isPanelMain: true, strokeWidth: 10, stroke: "transparent", name: "HIGHLIGHT" }), GoJs(go.Shape, { isPanelMain: true, stroke: "gray", strokeWidth: 6 }), GoJs(go.Panel, "Auto", { visible: true, name: "LABEL", segmentIndex: 2, segmentFraction: 0.5 }, GoJs(go.Shape, "RoundedRectangle", { fill: "#f4f2f2", stroke: null }), { contextMenu: GoJs(go.Adornment, "Vertical", GoJs("ContextMenuButton", GoJs(go.TextBlock, "innerJoin"), **//Here what to use obj or (to/from property of link) in go.TextBlock** { click: function (e, obj) { updateRelation(e, obj, "innerJoin"); } }) ) } );
Posts: 1
Participants: 1