Hi, I have a question about a layout.I have a group with your title and under it, a series of nodes. My idea is to position the nodes first and the title at the bottom. I have been modifying the GridLayout of the group and the alignment of the internal panel but it doesn’t work, any idea? Thanks in advance.
diagram.groupTemplateMap.add("zones",
$(go.Group, "Auto",
{
layout:
$(go.GridLayout,
{
wrappingColumn: 2, alignment: go.GridLayout.Position,
cellSize: new go.Size(1, 1), spacing: new go.Size(8, 8)
})
},
new go.Binding("background", "isHighlighted", function(h) { return h ? "rgba(255,0,0,0.2)" : "transparent"; }).ofObject(),
$(go.Shape, "RoundedRectangle",
new go.Binding("stroke", "stroke"),
new go.Binding("fill", "background"),
{ strokeWidth: 1, parameter1: 10, alignment: go.Spot.Center}),
$(go.Panel, "Vertical",
$(go.Panel, "Vertical",
{ stretch: go.GraphObject.Horizontal},
new go.Binding("width", "width"),
new go.Binding("height", "height"),
$(go.TextBlock,
{
alignment: go.Spot.TopCenter,
editable: false,
margin: 5,
},
new go.Binding("font", "font"),
new go.Binding("stroke", "textColor"),
new go.Binding("text", "text").makeTwoWay()),
),
$(go.Placeholder,
{ padding: 5, alignment: go.Spot.BottomCenter }),
)
));