drawerToggle is a control for collapsible drawerLayout on the left side of the page. This drawer contains the application’s main menu.

  • XML element: drawerToggle

  • Java class: DrawerToggle


drawerToggle is typically placed on the main application view. Together with navigationBar and drawerLayout they create a common pattern for navigating the application.

In the default application template, drawerToggle is located in the upper left corner of the navigation bar.

drawer toggle basic

It allows users to access main menu from anywhere in the application or collapse it to provide more space for the current view.



Adds a theme to the component. Possible values are:

  • normal

  • success

  • error

  • contrast

  • primary

  • small

  • pill


Чтобы сгенерировать заглушку обработчика в Jmix Studio, используйте вкладку Handlers панели инспектора Jmix UI, или команду Generate Handler, доступную на верхней панели контроллера экрана и через меню CodeGenerate (Alt+Insert / Cmd+N).


com.vaadin.flow.component.ClickEvent is sent when the user clicks the component.