use of com.vaadin.flow.component.tabs.Tabs in project sapl-demos by heutelbeck.
the class MainView method createMenuTabs.
private static Tabs createMenuTabs() {
final Tabs tabs = new Tabs();
tabs.setOrientation(Tabs.Orientation.HORIZONTAL);
tabs.add(getAvailableTabs());
return tabs;
}
use of com.vaadin.flow.component.tabs.Tabs in project docs by vaadin.
the class AppLayoutBottomNavbar method getTabs.
// end::snippet[]
private Tabs getTabs() {
Tabs tabs = new Tabs();
tabs.add(createTab(VaadinIcon.DASHBOARD, "Dashboard"), createTab(VaadinIcon.CART, "Orders"), createTab(VaadinIcon.USER_HEART, "Customers"), createTab(VaadinIcon.PACKAGE, "Products"));
tabs.addThemeVariants(TabsVariant.LUMO_MINIMAL, TabsVariant.LUMO_EQUAL_WIDTH_TABS);
return tabs;
}
use of com.vaadin.flow.component.tabs.Tabs in project docs by vaadin.
the class AppLayoutNavbarPlacementSide method getTabs.
// end::snippet[]
private Tabs getTabs() {
Tabs tabs = new Tabs();
tabs.add(createTab(VaadinIcon.DASHBOARD, "Dashboard"), createTab(VaadinIcon.CART, "Orders"), createTab(VaadinIcon.USER_HEART, "Customers"), createTab(VaadinIcon.PACKAGE, "Products"), createTab(VaadinIcon.RECORDS, "Documents"), createTab(VaadinIcon.LIST, "Tasks"), createTab(VaadinIcon.CHART, "Analytics"));
tabs.setOrientation(Tabs.Orientation.VERTICAL);
return tabs;
}
use of com.vaadin.flow.component.tabs.Tabs in project docs by vaadin.
the class AppLayoutSecondaryNavigation method getPrimaryNavigation.
// end::snippet[]
private Tabs getPrimaryNavigation() {
Tabs tabs = new Tabs();
tabs.add(createTab(VaadinIcon.DASHBOARD, "Dashboard"), createTab(VaadinIcon.CART, "Orders"), createTab(VaadinIcon.USER_HEART, "Customers"), createTab(VaadinIcon.PACKAGE, "Products"), createTab(VaadinIcon.RECORDS, "Documents"), createTab(VaadinIcon.LIST, "Tasks"), createTab(VaadinIcon.CHART, "Analytics"));
tabs.setOrientation(Tabs.Orientation.VERTICAL);
tabs.setSelectedIndex(1);
return tabs;
}
use of com.vaadin.flow.component.tabs.Tabs in project docs by vaadin.
the class AppLayoutSecondaryNavigation method getSecondaryNavigation.
private Tabs getSecondaryNavigation() {
Tabs tabs = new Tabs();
tabs.add(new Tab("All"), new Tab("Open"), new Tab("Completed"), new Tab("Cancelled"));
return tabs;
}
Aggregations