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

com.github.fluorumlabs.disconnect.vaadin.elements.ButtonElement Maven / Gradle / Ivy

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 nameDescription
labelThe label (text) inside the button
prefixA slot for e.g. an icon before the label
suffixA slot for e.g. an icon after the label
* The following attributes are exposed for styling: * * * * * * * * * * * *
AttributeDescription
activeSet when the button is pressed down, either with mouse, touch or the keyboard * .
disabledSet when the button is disabled.
focus-ringSet when the button is focused using the keyboard.
focusedSet 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"; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy