Class GeneratedVaadinTabs<R extends GeneratedVaadinTabs<R>>

  • All Implemented Interfaces:
    AttachNotifier, DetachNotifier, HasElement, HasStyle, HasTheme, Serializable
    Direct Known Subclasses:
    Tabs

    @Deprecated
    @Tag("vaadin-tabs")
    @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="23.3.30") @NpmPackage(value="@vaadin/tabs",version="23.3.30") @NpmPackage(value="@vaadin/vaadin-tabs",version="23.3.30")
    @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/tabs/src/vaadin-tabs.js")
    public abstract class GeneratedVaadinTabs<R extends GeneratedVaadinTabs<R>>
    extends Component
    implements HasStyle, HasTheme
    Deprecated.
    since v23.3, generated classes will be removed in v24.

    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>

    Styling

    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

    See ThemableMixin – how to apply styles for shadow parts

    See Also:
    Serialized Form
    • Constructor Detail

      • GeneratedVaadinTabs

        public GeneratedVaadinTabs()
        Deprecated.
    • Method Detail

      • addThemeVariants

        @Deprecated
        public void addThemeVariants​(TabsVariant... variants)
        Deprecated.
        since v23.3, generated classes will be removed in v24.
        Adds theme variants to the component.
        Parameters:
        variants - theme variants to add
      • removeThemeVariants

        @Deprecated
        public void removeThemeVariants​(TabsVariant... variants)
        Deprecated.
        since v23.3, generated classes will be removed in v24.
        Removes theme variants from the component.
        Parameters:
        variants - theme variants to remove
      • focus

        @Deprecated
        protected void focus()
        Deprecated.
        since v23.3, generated classes will be removed in v24.