All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fluorumlabs.disconnect.vaadin.Tab Maven / Gradle / Ivy

The newest version!
package com.github.fluorumlabs.disconnect.vaadin;

import com.github.fluorumlabs.disconnect.core.annotations.WebComponent;
import com.github.fluorumlabs.disconnect.vaadin.elements.TabElement;
import com.github.fluorumlabs.disconnect.vaadin.mixins.HasElementMixin;
import com.github.fluorumlabs.disconnect.vaadin.mixins.HasItemMixin;
import com.github.fluorumlabs.disconnect.vaadin.mixins.HasThemableMixin;
import com.github.fluorumlabs.disconnect.vaadin.types.ThemeVariant;
import com.github.fluorumlabs.disconnect.zero.component.AbstractComponent;
import com.github.fluorumlabs.disconnect.zero.component.Component;
import com.github.fluorumlabs.disconnect.zero.component.HasComponents;
import com.github.fluorumlabs.disconnect.zero.component.HasStyle;
import js.extras.JsEnum;

/**
 * <vaadin-tab> is a Web Component providing an accessible and customizable tab.
 *
 * 
  <vaadin-tab>
 *     Tab 1
 *   </vaadin-tab>
 * 
* The following state attributes are available for styling: * * * * * * * * * * * * * *
AttributeDescriptionPart name
disabledSet to a disabled tab:host
focusedSet when the element is focused:host
focus-ringSet when the element is keyboard focused:host
selectedSet when the tab is selected:host
activeSet when mousedown or enter/spacebar pressed:host
orientationSet to horizontal or vertical depending on the * direction of items:host
* See * ThemableMixin – how to apply styles for shadow parts */ @WebComponent public class Tab extends AbstractComponent implements HasElementMixin, HasThemableMixin, HasItemMixin, HasStyle, HasComponents> { public Tab() { super(TabElement.TAGNAME()); } public abstract static class Variant extends ThemeVariant { public static final Variant ICON_ON_TOP = JsEnum.of("icon-on-top"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy