@anildes wrote:
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
Posts: 5
Participants: 3