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

com.github.fluorumlabs.disconnect.vaadin.elements.CheckboxElement 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-checkbox> is a Web Component for customized checkboxes.
 *
 * 
<vaadin-checkbox>
 *   Make my profile visible
 * </vaadin-checkbox>
 * 
*

Styling

* The following shadow DOM parts are available for styling: * * * * * * * * * *
Part nameDescription
checkboxThe wrapper element for the native
labelThe wrapper element in which the component's children, namely the label, is * slotted
* The following state attributes are available for styling: * * * * * * * * * * * * * * *
AttributeDescriptionPart name
activeSet when the checkbox is pressed down, either with mouse, touch or the * keyboard.:host
disabledSet when the checkbox is disabled.:host
focus-ringSet when the checkbox is focused using the keyboard * .:host
focusedSet when the checkbox is focused.:host
indeterminateSet when the checkbox is in indeterminate mode * .:host
checkedSet when the checkbox 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-checkbox/theme/lumo/vaadin-checkbox.js" ) public interface CheckboxElement extends HTMLElement, ElementMixin, ControlStateMixin, ThemableMixin, GestureEventListeners { static String TAGNAME() { return "vaadin-checkbox"; } /** * Name of the element. */ @JSProperty String getName(); /** * Name of the element. */ @JSProperty void setName(String name); /** * True if the checkbox is checked. */ @JSProperty boolean isChecked(); /** * True if the checkbox is checked. */ @JSProperty void setChecked(boolean checked); /** * Indeterminate state of the checkbox when it's neither checked nor unchecked, but undetermined. * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes */ @JSProperty boolean isIndeterminate(); /** * Indeterminate state of the checkbox when it's neither checked nor unchecked, but undetermined. * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes */ @JSProperty void setIndeterminate(boolean indeterminate); /** * The value given to the data submitted with the checkbox's name to the server when the control is inside a form. */ @Nullable @JSProperty String getValue(); /** * The value given to the data submitted with the checkbox's name to the server when the control is inside a form. */ @JSProperty void setValue(String value); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy