react-mosaic
react-mosaic copied to clipboard
Feature request: Hiding panels
One can hide the panel by settings its width/height to zero. However, we are still able to drag the border of zero width panel and open it. There are situations when we want to close the panel and restrict it from appearance.
One could remove the panel from the template provided to mosaic component, but this requires too much spaghetti logic if one has multiple possible combinations of opened/closed panels.
Is it feasible to add some attribute for example hidden
/closed
to the template to utterly hide the panel without removing it from the value passes to mosaic component? (I managed to write some generic code for this, but having this in the library would be cool)
Maybe there is already a way to do this? (I tried to search SO and issue to no avail)
Thank you for your time!
https://github.com/nomcopter/react-mosaic/issues/159#issuecomment-946285242 but an example to hide/reinsert individual panels, after some panel movements, would be helpful