com.github.fluorumlabs.disconnect.vaadin.elements.ItemElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of disconnect-vaadin Show documentation
Show all versions of disconnect-vaadin Show documentation
Vaadin components bindings for Disconnect Zero
The newest version!
package com.github.fluorumlabs.disconnect.vaadin.elements;
import com.github.fluorumlabs.disconnect.core.annotations.Import;
import com.github.fluorumlabs.disconnect.core.annotations.NpmPackage;
import com.github.fluorumlabs.disconnect.vaadin.Vaadin;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.ItemMixin;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.ThemableMixin;
import js.web.dom.HTMLElement;
/**
* <vaadin-item>
is a Web Component providing layout for items in tabs and menus.
*
* <vaadin-item>
* Item content
* </vaadin-item>
*
* Selectable
* <vaadin-item>
has the selected
property and the corresponding state attribute.
* Currently, the component sets the selected
to false, when disabled
property is set to true.
* But other than that, the <vaadin-item>
does not switch selection by itself.
* In general, it is the wrapper component, like <vaadin-list-box>
, which should update
* the selected
property on the items, e. g. on mousedown or when Enter / Spacebar is pressed.
*
* Styling
* The following shadow DOM parts are available for styling:
*
*
*
* Part name Description
*
*
* content
The element that wraps the slot
*
*
* The following state attributes are available for styling:
*
*
*
* Attribute Description Part name
*
*
* disabled
Set to a disabled item :host
* focused
Set when the element is focused :host
* focus-ring
Set when the element is keyboard focused :host
* selected
Set when the item is selected :host
* active
Set when mousedown or enter/spacebar pressed :host
*
*
*/
@NpmPackage(
name = "@vaadin/vaadin",
version = Vaadin.VERSION
)
@Import(
module = "@vaadin/vaadin-item/theme/lumo/vaadin-item.js"
)
public interface ItemElement extends HTMLElement, ItemMixin, ThemableMixin {
static String TAGNAME() {
return "vaadin-item";
}
}