I have declared my own paltte in planogram.html as shown below
myPaletteAssembled.model = new go.GraphLinksModel([
{ key: “Rackassembledpatchpanel”, color: green, source:“cat6assembledtotalrack.png” ,size: “100 100”},
{ key: “Rackassembledpatchpanel”, color: blue, source:“cat6assembledtotalrack.png” ,size: “100 100”},
{ key: “Rackassembledpatchpanel”, color: yellow, source:“cat6assembledtotalrack.png”,size: “100 100” }
]);
myPaletteAssembled =
$(go.Palette, "myPaletteAssembled",
{ // share the templates with the main Diagram
nodeTemplate: myDiagram.nodeTemplate,
groupTemplate: myDiagram.groupTemplate,
layout: $(go.GridLayout)
});
When I run the Example planogram.html I get the error "Uncaught reference error “myPaletteAssembled” is not defined
Yes thanks that was the problem but in this Example when I sense that some palatte has been dropped I need that to be replaced with my myPaletteAssembled and I tried using myDiagram.model.addNodeData(myDiagram.findNodeForKey(“Rackassembledpatchpanel”)); but I do not see that node
on the background . Do I need to make something visible or I need to use some other call ?