Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

How to use obj in linkTemplate in contextMenu in TextBlock

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles