Didn't find anything about hiding (not automatic close).

I have a button and a visible layer with some graphics.
I want to click on a button and hide this layer.
Is there any way to do this?

Thank you!