Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7419

Why it say's mypallete is undefined?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 7419

Trending Articles