Is there a way to create a top menu in FlowUI?

Is there a way to create a top menu in FlowUI?,
Topside menu bar
I know that before FlowUI there was the option to directly create a screen with the top menu or use the “menu” component, but I don’t find a way to do it in FlowUI , so I wanted to know if there is a way to do it.

Hi,

There is no built-in Main View with Top Menu template. Since main-view.xml is located in the project, you can change it whatever you need or create a new one. Content of menu.xml can be obtained using MenuConfig bean, e.g.:

List<MenuItem> rootItems = menuConfig.getRootItems();

For the top menu, the Vaadin Menu Bar component can be used. It has no XML representation in Jmix, but can be used programmatically according to Vaadin doc.

Also, pay attention, that custom MainView must implement the RouterLayout interface.

Regards,
Gleb