Is there a way to change the width of a SideMenu element using a controller?

I’ve got a sidemenu who’s width attribute is set to “55” so that it shows only the icons. I’d like to set a button that increases the width value to “300” so it shows both the icons and the titles for the list inside the menu, then when it’s pressed again, it resets the value to “55”.

Basically, I want to be able to ‘open’ and ‘shut’ the menu without ever fully closing it. Is there an easier way to do this that I’m thinking of?