TreeExpanderButton default collapse

when init diagram ,to use treeExpanderButton, how to default collapse tree,I do not where to call Node.collapseTreeor Node.expandTree ? thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks

In your node template, set Node.isTreeExoanded to false.
See, for example, GoJS SubTrees -- Northwoods Software.