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

com.github.fluorumlabs.disconnect.vaadin.elements.RadioButtonElement 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;
import org.teavm.jso.JSProperty;

import javax.annotation.Nullable;

/**
 * <vaadin-radio-button> is a Web Component for radio buttons.
 *
 * 
<vaadin-radio-button value="foo">Foo</vaadin-radio-button>
 * 
*

Styling

* The following shadow DOM parts are available for styling: * * * * * * * * * *
Part nameDescription
radioThe radio button element
labelThe label content element
* The following state attributes are available for styling: * * * * * * * * * * * * *
AttributeDescriptionPart name
disabledSet when the radio button is disabled.:host
focus-ringSet when the radio button is focused using the keyboard * .:host
focusedSet when the radio button is focused.:host
checkedSet when the radio button is checked.:host
emptySet when there is no label provided.label
* See * ThemableMixin – how to apply styles for shadow parts */ @NpmPackage( name = "@vaadin/vaadin", version = Vaadin.VERSION ) @Import( module = "@vaadin/vaadin-radio-button/theme/lumo/vaadin-radio-button.js" ) public interface RadioButtonElement extends HTMLElement, ElementMixin, ControlStateMixin, ThemableMixin, GestureEventListeners { static String TAGNAME() { return "vaadin-radio-button"; } /** * Name of the element. */ @Nullable @JSProperty String getName(); /** * Name of the element. */ @JSProperty void setName(String name); /** * True if the radio button is checked. */ @JSProperty boolean isChecked(); /** * True if the radio button is checked. */ @JSProperty void setChecked(boolean checked); /** * The value for this element. */ @Nullable @JSProperty String getValue(); /** * The value for this element. */ @JSProperty void setValue(String value); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy