Closed zning closed 3 years ago
similar need. Looks like it sets the splitPercentage to 0 but doesn't save the previous value to set it back later. I don't see a way to do this currently but also need this behavior.
You can just save the overall state or the state for that specific node and then reset it when you want to unhide it. You can do this by simply changing the value
provided to Mosaic
or using updateTree
provided through context.
Could you provide an example with the demo code? For instance, if I move window 3 around, move window 1 and close window 3, how can I restore window 3?
You can set the value
passed to Mosaic
at any time. Simply restore it to what it was before you closed it or any other value that includes window 3.
I used MosaicActions.hide() to hide a node, is there a way to unhide/undo this to make the element show again?
Thanks a lot!