Hiding/Showing parts of panel

good afternoon. I need to hide/show dynamically elements of a panel, I’m not sure if its as easy as changing the visible attribute of the desired element, and if so… will the panel resize? If not, how can I make it do so?

Good morning. Yes it is as easy as changing the GraphObject.visible property within a transaction.

In fact, that is exactly the purpose of the “PanelExpanderButton”, if you want your users to control that visible property. Please read GoJS Buttons -- Northwoods Software and see its definition at https://gojs.net/latest/extensions/Buttons.js .