tabSheet

tabSheet is a container which allows switching between tabs. Several tabs help group content on the page.

  • XML element: tabSheet

  • Java class: JmixTabSheet

Basics

The contents of a tab is described by the tab component. Each tab can contain only one child component. Multiple components must be wrapped with a layout component, such as vbox.

<tabSheet id="tabSheet">
    <tab id="tab1" label="Tab One">
        <vbox>
            <label text="Label One"/>
            <textField placeholder="Text Field One"/>
        </vbox>
    </tab>
    <tab id="tab2" label="Tab Two">
        <label text="Label Two"/>
    </tab>
    <tab id="tab3" label="Tab Three">
        <label text="Label Three"/>
    </tab>
</tabSheet>
tabsheet basic

To add tab in Jmix Studio, select the component in the screen descriptor XML or in the Jmix UI structure panel and click on the Add→Tab button in the Component Inspector panel.

tabSheet can have any practical number of tabs. If there are more tabs than the tab bar can fit, navigation buttons will appear.

Attributes

themeNames

Sets a different theme to change component’s appearance.

Handlers

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

SelectedChangeEvent

io.jmix.flowui.component.tabsheet.JmixTabSheet.SelectedChangeEvent is fired when another tab is selected.

See Also

See Vaadin Docs for more information.