38
Views
4
Comments
Side Menu Toggle

Hello,

I want to make like a button that toggle the side menu but not completely meaning I want when the user clicks on the button the side menu shows the icons only without the text


How to achieve that? 

Oml is attached

Thanks

SideMenu.oml
Champion

Hi @Mohamed Zakaria 

If don't want to show the text then why are you using text with icon.

Is there any other scenario for which text should show with icon?

Best,

Arun 

Hi Arun

The business requires to have icon and text, this is the default and when clicking on the button only the icons will appear.

Also this is for all elements on the side menu including name of project and logout button

 So it's required to only have the icons when clicking on that button and when clicking it again it shows the default view (icons with text)

Champion

In this case create one local variable with Boolean data type and name it HideText and on the click of the toggle button make this variable value True and now hide your all text using this variable.

For Ex- if you want to hide screen text enclose screen text inside the container or make container visible property = NotHideText

Regards,

Arun

Hi @Mohamed Zakaria,

PFA is the oml of the solution. You can refer this. 

Please let me know if more help required.

Regards,

Deepika

SideMenuSolution.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.