I am using Vaadin 24. I use a side menu and I use "DrawerToggle" to show / hide menu items when the burger icon is pressed. Works very well.
DrawerToggle toggle = new DrawerToggle();
SideNav nav = createSideNav(); The SideNavItems are created this way:
SideNavItem item = new SideNavItem(label);
item.setPrefixComponent(icon); As said before, this works fine. But my aim is to hide the label only when the drawer is collapsed. I'd like the icons to remain visible even if the drawer is collapsed. So even if collapsed, the drawer should remain visible, with a width of 60px maybe, and still show the icons.
Is there any way to achieve this ?
I tried with lots of CSS, but I think it interferes with Vaadin's build in mechanism to open and close the drawer.
thanks, Thorsten