Package com.vaadin.flow.component.tabs
Class GeneratedVaadinTabs<R extends GeneratedVaadinTabs<R>>
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.tabs.GeneratedVaadinTabs<R>
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,Serializable
- Direct Known Subclasses:
Tabs
@Tag("vaadin-tabs") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="23.1.3") @NpmPackage(value="@vaadin/tabs",version="23.1.3") @NpmPackage(value="@vaadin/vaadin-tabs",version="23.1.3") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/tabs/src/vaadin-tabs.js") public abstract class GeneratedVaadinTabs<R extends GeneratedVaadinTabs<R>> extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasThemeDescription 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>Styling
The following shadow DOM parts are available for styling:
Part name Description back-buttonButton for moving the scroll back tabsThe tabs container forward-buttonButton for moving the scroll forward The following state attributes are available for styling:
Attribute Description Part name orientationTabs disposition, valid values are horizontalandvertical.:host overflowIt's set to start,end, none or both.:host - See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeneratedVaadinTabs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddThemeVariants(TabsVariant... variants)Adds theme variants to the component.protected voidfocus()voidremoveThemeVariants(TabsVariant... variants)Removes theme variants from the component.-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
addThemeVariants
public void addThemeVariants(TabsVariant... variants)
Adds theme variants to the component.- Parameters:
variants- theme variants to add
-
removeThemeVariants
public void removeThemeVariants(TabsVariant... variants)
Removes theme variants from the component.- Parameters:
variants- theme variants to remove
-
focus
protected void focus()
-
-