Changing sideBar menu width programmatically

Is there any way we can change programmatically the width of the sidebar menu created by CUBA Studio template?

In fact, if you use the standard template, you need nothing but a vbox with sideMenuPanel id. Use the setWidth() method in ExtAppMainWindow controller, for example:

sideMenuPanel.setWidth("400px");