com.github.fluorumlabs.disconnect.vaadin.elements.ButtonElement 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.polymer.elements.mixins.GestureEventListeners;
import com.github.fluorumlabs.disconnect.vaadin.Vaadin;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.ControlStateMixin;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.ElementMixin;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.ThemableMixin;
import js.web.dom.HTMLElement;
/**
* <vaadin-button>
is a Web Component providing an accessible and customizable button.
*
* <vaadin-button>
* </vaadin-button>
*
* document.querySelector('vaadin-button').addEventListener('click', () => alert
* ('Hello World!'));
*
* Styling
* The following shadow DOM parts are exposed for styling:
*
*
*
* Part name Description
*
*
* label
The label (text) inside the button
* prefix
A slot for e.g. an icon before the label
* suffix
A slot for e.g. an icon after the label
*
*
* The following attributes are exposed for styling:
*
*
*
* Attribute Description
*
*
* active
Set when the button is pressed down, either with mouse, touch or the keyboard
* .
* disabled
Set when the button is disabled.
* focus-ring
Set when the button is focused using the keyboard.
* focused
Set when the button is focused.
*
*
* See
* ThemableMixin – how to apply styles for shadow parts
*/
@NpmPackage(
name = "@vaadin/vaadin",
version = Vaadin.VERSION
)
@Import(
module = "@vaadin/vaadin-button/theme/lumo/vaadin-button.js"
)
public interface ButtonElement
extends HTMLElement, ElementMixin, ControlStateMixin, ThemableMixin, GestureEventListeners {
static String TAGNAME() {
return "vaadin-button";
}
}