Search in sources :

Example 21 with Tabs

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;
}
Also used : Tabs(com.vaadin.flow.component.tabs.Tabs)

Example 22 with 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;
}
Also used : Tabs(com.vaadin.flow.component.tabs.Tabs)

Example 23 with 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;
}
Also used : Tabs(com.vaadin.flow.component.tabs.Tabs)

Example 24 with 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;
}
Also used : Tabs(com.vaadin.flow.component.tabs.Tabs)

Example 25 with 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;
}
Also used : Tab(com.vaadin.flow.component.tabs.Tab) Tabs(com.vaadin.flow.component.tabs.Tabs)

Aggregations

Tabs (com.vaadin.flow.component.tabs.Tabs)40 Tab (com.vaadin.flow.component.tabs.Tab)17 Test (org.junit.Test)16 Component (com.vaadin.flow.component.Component)5 Div (com.vaadin.flow.component.html.Div)3 FlexComponent (com.vaadin.flow.component.orderedlayout.FlexComponent)2 ShowComponentRequestedEvent (org.archcnl.ui.outputview.sidebar.events.ShowComponentRequestedEvent)2 HasElement (com.vaadin.flow.component.HasElement)1 Text (com.vaadin.flow.component.Text)1 H3 (com.vaadin.flow.component.html.H3)1 NativeButton (com.vaadin.flow.component.html.NativeButton)1 Icon (com.vaadin.flow.component.icon.Icon)1 HorizontalLayout (com.vaadin.flow.component.orderedlayout.HorizontalLayout)1 VerticalLayout (com.vaadin.flow.component.orderedlayout.VerticalLayout)1 TabsVariant (com.vaadin.flow.component.tabs.TabsVariant)1 Element (com.vaadin.flow.dom.Element)1 FurmsViewComponent (io.imunity.furms.ui.components.FurmsViewComponent)1 LogoutIconFactory (io.imunity.furms.ui.components.LogoutIconFactory)1 MenuComponent (io.imunity.furms.ui.components.MenuComponent)1 TabComponent (io.imunity.furms.ui.components.TabComponent)1