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

Error: Trying to set undefined property "0" on object: Node#1260

$
0
0

@johnsunam wrote:

I copy pasted the code for flowchart from the gojs flowchart documentation .i continuously get this error in my browser console and unable to use go js library. When i console.log() than i found error is from this ,but unable to figure out what is wrong so plz give me some suggestion . I am using it in reactjs.

 myDiagram.nodeTemplateMap.add("",  // the default category
      $(go.Node, "Spot",self.nodeStyle(),
        // the main object is a Panel that surrounds a TextBlock with a rectangular Shape
        $(go.Panel, "Auto",
          $(go.Shape, "Rectangle",
            { fill: "#00A9C9", stroke: null },
            new go.Binding("figure", "figure")),
          $(go.TextBlock,
            {
              font: "bold 11pt Helvetica, Arial, sans-serif",
              stroke: lightText,
              margin: 8,
              maxSize: new go.Size(160, NaN),
              wrap: go.TextBlock.WrapFit,
              editable: true
            },
            new go.Binding("text").makeTwoWay())
        ),
        // four named ports, one on each side:
        self.makePort("T", go.Spot.Top, false, true),
        self.makePort("L", go.Spot.Left, true, true),
        self.makePort("R", go.Spot.Right, true, true),
        self.makePort("B", go.Spot.Bottom, true, false)
      ));

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles