@Tag(value="vaadin-tabs") @JsModule(value="@vaadin/vaadin-tabs/src/vaadin-tabs.js") @NpmPackage(value="@vaadin/vaadin-tabs", version="3.2.0") public abstract class GeneratedVaadinTabs<R extends GeneratedVaadinTabs<R>> extends Component implements HasStyle, HasTheme
Description copied from corresponding location in WebComponent:
<vaadin-tabs> is a Web Component for easy switching between different
views.
<vaadin-tabs selected="4">
<vaadin-tab>Page 1</vaadin-tab>
<vaadin-tab>Page 2</vaadin-tab>
<vaadin-tab>Page 3</vaadin-tab>
<vaadin-tab>Page 4</vaadin-tab>
</vaadin-tabs>
The following shadow DOM parts are available for styling:
| Part name | Description |
|---|---|
back-button |
Button for moving the scroll back |
tabs |
The tabs container |
forward-button |
Button for moving the scroll forward |
The following state attributes are available for styling:
| Attribute | Description | Part name |
|---|---|---|
orientation |
Tabs disposition, valid values are horizontal and
vertical. |
:host |
overflow |
It's set to start, end, none or both. |
:host |
| Constructor and Description |
|---|
GeneratedVaadinTabs() |
| Modifier and Type | Method and Description |
|---|---|
void |
addThemeVariants(TabsVariant... variants)
Adds theme variants to the component.
|
protected void |
focus() |
void |
removeThemeVariants(TabsVariant... variants)
Removes theme variants from the component.
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameaddThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNamegetElementaddAttachListeneraddDetachListenerpublic void addThemeVariants(TabsVariant... variants)
variants - theme variants to addpublic void removeThemeVariants(TabsVariant... variants)
variants - theme variants to removeprotected void focus()
Copyright © 2025. All rights reserved.