I have a simple template for a group with a title and a placeholder. It looks somewhat like
I am trying to move the title outside the group marked with the red line. Is it possible to move TextBlocks outside the panel? if so, how can I achieve that?
The template code is as follows
this.diagram.groupTemplateMap.add(
category,
this.$(
go.Group,
'Auto',
{
selectionAdorned: false,
layout: this.$(go.LayeredDigraphLayout, {
direction: 0,
columnSpacing: 10,
layeringOption: go.LayeredDigraphLayout.LayerLongestPathSource,
}),
cursor: 'pointer',
deletable: false,
},
this.$(go.Shape, 'RoundedRectangle', { stroke: null, strokeWidth: 2, fill: color }),
this.$(
go.Panel,
'Vertical',
{
defaultAlignment: go.Spot.Left,
padding: new go.Margin(10),
},
this.$(go.TextBlock, '...', {
alignment: go.Spot.TopLeft,
stroke: OrchDiagramConfig.bucket.title.color,
font: OrchDiagramConfig.bucket.title.font,
margin: new go.Margin(0, 10),
text: name,
}),
this.$(go.Placeholder, {
padding: new go.Margin(10),
})
)
)
);