Kanban board subgraph

I am working with Kanban board example.
Is it possible to set lanes to “isSubGraphExpanded=No”(=minimize) at starting?

Thanks in advance.

Yes, you’ll need a few minor changes.

In the group template, set isSubGraphExpanded: false.
In the group template, the subGraphExpandedChanged function should check that a _savedBreadth exists before setting shp.width.
The data should be updated with expanded: false to properly match the initial state.

Thank you very much, it’s running.
I insert: if(typeof grp._savedBreadth ! == ‘undefined’) { shp.width=grp._savedBreadth;}
Is it correct?

Thanks in advance

Yes, I think you can simplify that to if (grp._savedBreadth) shp.width = grp._savedBreadth;

Thank you , it runs.
Last question:
IS it possible , when the swinlane is collapsed, to have 2 TextBlock(1 angle:0, another with angle 90)?
In go.Panel,“Auto”…

new go.Binding(“visible”,“isSubGraphExpanded”,function(e){return !e;}).ofObject(),
new go.Binding(“text”,“nb”).makeTwoWay()),
and the second which is OK:
name: “LABEL”,
font: “15px Lato, sans-serif”, editable: false,width:1000,maxLines:1,wrap:go.TextBlock.WrapFit,//15px
angle: 90, alignment: go.Spot.TopLeft, margin: new go.Margin(4, 0, 0, 2)

new go.Binding(“visible”, “isSubGraphExpanded”, function(e) { return !e; }).ofObject(),
new go.Binding(“text”, “type”).makeTwoWay())

Where is the error?

Thanks in advance

Hmm, could you show us a screenshot/mockup of how you want the lanes to be displayed when collapsed? I’m not sure I understand what look you’re going for.

Edit: Responded via email.