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

Not able to drag node in palette properly into flow diagram

$
0
0

@kswamy15 wrote:

I am trying the data flow diagram example (https://gojs.net/latest/samples/dataFlow.html) but with a palette containing the nodes. When I drag a node into the flow diagram, it appears as just a small rectangle with the ‘Table’, ‘Join’ text, no image of the node with all the ports is shown. Not sure what I need to do other than just creating a palette like below:
myPalette =
$(go.Palette, “myPaletteDiv”, // must name or refer to the DIV HTML element
{
scrollsPageOnFocus: false,
nodeTemplateMap: myDiagram.nodeTemplateMap, // share the templates used by myDiagram
model: new go.GraphLinksModel([ // specify the contents of the Palette
{ category: “Table”, text: “Table” },
{ category: “Join”, text: “Join” },
{ category: “Project”, text: “Project” },
{ category: “Filter”, text: “Filter” },
{ category: “Group”, text: “Group” },
{ category: “Sort”, text: “Sort” },
])
});

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles