nomcopter / react-mosaic

A React tiling window manager

Home Page:https://nomcopter.github.io/react-mosaic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Hiding panels

AleksandrSl opened this issue · comments

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!

#159 (comment) but an example to hide/reinsert individual panels, after some panel movements, would be helpful