use of io.sunshower.zephyr.ui.controls.NavigationBarButton in project aire-components by aire-ux.
the class ZephyrManagementConsoleView method decorate.
@Override
public void decorate(ApplicationLayout layout) {
homeButton = new NavigationBarButton(MainView.class, new Image("images/icon.svg", "Home"));
homeButton.setClassName("container-end");
layout.getTop().add(homeButton);
val homeButton = new NavigationBarButton(ModuleGrid.class, List.of("management/modules"), MatchMode.Contains, VaadinIcon.PLUG.create());
layout.getNavigation().add(homeButton);
layout.getTop().add(new BreadcrumbNavigation());
}
use of io.sunshower.zephyr.ui.controls.NavigationBarButton in project aire-components by aire-ux.
the class MainView method createTop.
protected HasComponents createTop() {
val topNav = super.createTop();
topNav.add(new BreadcrumbNavigation());
val menuBar = new MenuBar();
menuBar.addThemeVariants(MenuBarVariant.LUMO_SMALL, MenuBarVariant.LUMO_ICON);
var homeButton = new NavigationBarButton(MainView.class, new Image("images/icon.svg", "Home"));
homeButton.setClassName("container-end");
topNav.add(homeButton);
val item = menuBar.addItem(VaadinIcon.MENU.create());
val submenu = item.getSubMenu();
submenu.addItem(new RouterLink("Zephyr", ModuleGrid.class));
topNav.add(menuBar);
return topNav;
}
Aggregations