How to close sidebar

i make a sidebar, when i click menu icon in the title bar sidebar open but now what block will be used to close sidebar.

is the following block should i used ?

Capture

But how. :thinking:…?

simply when any item from the sidebar is clicked then use the close block the run the function you want

2 Likes