com.github.fluorumlabs.disconnect.vaadin.elements.CheckboxElement 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;
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 name Description
*
*
* checkbox
The wrapper element for the native
* label
The wrapper element in which the component's children, namely the label, is
* slotted
*
*
* The following state attributes are available for styling:
*
*
*
* Attribute Description Part name
*
*
* active
Set when the checkbox is pressed down, either with mouse, touch or the
* keyboard. :host
* disabled
Set when the checkbox is disabled. :host
* focus-ring
Set when the checkbox is focused using the keyboard
* . :host
* focused
Set when the checkbox is focused. :host
* indeterminate
Set when the checkbox is in indeterminate mode
* . :host
* checked
Set when the checkbox is checked. :host
* empty
Set 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);
}