Ir al contenido

TreeExpanderButton

TreeExpanderButton(options?): Panel

Defined in: panel/Buttons.ts:27

GoJS-compatible: a small square button (“−” when expanded, “+” when collapsed) that toggles the containing node’s tree — its descendants per findTreeChildrenNodes() — via Diagram.collapseTree/expandTree. Add it to a node template near where a link to its tree children attaches.

This is distinct from a Group’s isSubGraphExpanded/collapseGroup: it works on any Node with tree-structured children, group or not.

ExpanderButtonOptions = {}

Panel