Posted this in one of the older threads last week, but did not get any response (Please remove this if you answer the other one)…
Follow up question on this one. Tried to make the whole table
disappear when the group is collapsed. Tried to do it the following way:
myDiagram.groupTemplateMap.add(“ICON-EXP”,
$(go.Group, go.Panel.Auto,
{ minSize : new go.Size(50,100)},
new go.Binding("location", "location", go.Point.parse).makeTwoWay(go.Point.stringify),
$(go.Shape, { fill: null, stroke: "blue", strokeWidth: 2 }),
$(go.Panel, go.Panel.Table,
{ name: "TABLE", margin: 0 },
new go.Binding(“visible”,“isSubGraphExpanded”).ofObject(),
// this will be the top half
$(go.Shape, { row: 0, fill: “transparent”, stroke: null, stretch: go.GraphObject.Fill }),
// this Placeholder will occupy the bottom half
$(go.Placeholder, { row: 1, background: “transparent”, padding: 5 })),
$(“SubGraphExpanderButton”,{alignment: new go.Spot(0,0)})));
It works, however the collapsed object is not possible to move around… Any ideas why?
BTW:
Did you change the handling of geometry strings somehow in beta 7. Arcs
are misbehaving badly for me with beta 7, but worked flawlessly
before…