Hi, I have set up a template for table layout, the result of which is shown in the diagram below
The children inside this parent container are also tables themselves, but since they do not have any children themselves, they only appear as green boxes (which is the header for each table group).
I want to know how I can bring them closer together by reducing the spacing between them.
for reference, here is the template that I have defined:
$(gojs.Group, "Vertical", new gojs.Binding("location", "loc", gojs.Point.parse).makeTwoWay(gojs.Point.stringify),
{
layout: $(TableLayout),
margin: new gojs.Margin(4, 4),
padding: new gojs.Margin(8, 4),
minSize: new gojs.Size(100,50)
},
new gojs.Binding("row", "row"),
new gojs.Binding('column', 'col'),
new gojs.Binding('columnSpan', 'colSpan'),
$(gojs.Panel, "Horizontal", // the header
{ defaultAlignment: gojs.Spot.Top, padding: new gojs.Margin(8, 4) },
$("SubGraphExpanderButton"), // this Panel acts as a Button
$(gojs.TextBlock, // group title near top, next to button
{ font: "Bold 12pt Sans-Serif", margin: new gojs.Margin(0, 4) },
new gojs.Binding("text", "key", (data) => {
return `Table: ${data}`
})
),
),
$(gojs.Panel, "Auto",
$(gojs.Shape, "RoundedRectangle", { fill: null }),
$(gojs.Placeholder)
)
)