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

Planogram sample : How to add a node using addNode

$
0
0

@anildes wrote:

adding a node using
e.diagram.model.addNodeData(myPaletteAssembled) and this does not show in the Diagram , Instead it shows -6 with a
small rectangle

Shown below is details of myPaletteAssembled:
myPaletteAssembled =
$(go.Palette, "myPaletteAssembled",
{ // share the templates with the main Diagram
nodeTemplate: myDiagram.nodeTemplate,
groupTemplate: myDiagram.groupTemplate,
layout: $(go.GridLayout)
});
myPaletteAssembled.model = new go.GraphLinksModel([
{ key: "Rackassembledpatchpanel", color: green,size: "200 200",source:"cat6assembledtotalrack.png"},
{ key: "Rackassembledpatchpanel", color: blue, size: "200 200",source:"cat6assembledtotalrack.png"},
{ key: "Rackassembledpatchpanel", color: yellow,size: "200 200",source:"cat6assembledtotalrack.png"}
]);

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles