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

com.github.fluorumlabs.disconnect.vaadin.elements.TextAreaElement 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.vaadin.Vaadin;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.TextFieldMixin;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.ThemableMixin;
import js.web.dom.HTMLElement;

/**
 * <vaadin-text-area> is a Web Component for text area control in forms.
 *
 * 
<vaadin-text-area label="Add description">
 * </vaadin-text-area>
 * 
*

Prefixes and suffixes

* These are child elements of a <vaadin-text-area> that are displayed * inline with the input, before or after. * In order for an element to be considered as a prefix, it must have the slot * attribute set to prefix (and similarly for suffix). * *
<vaadin-text-area label="Add description">
 *   <div slot="prefix">Details:</div>
 *   <div slot="suffix">The end!</div>
 * </vaadin-text-area>
 * 
*

Styling

* The following shadow DOM parts are available for styling: * * * * * * * * * * * *
Part nameDescription
labelThe label element
input-fieldThe element that wraps prefix, value and suffix
valueThe text value element inside the input-field element
error-messageThe error message element
* The following state attributes are available for styling: * * * * * * * * * * * * * * *
AttributeDescriptionPart name
disabledSet to a disabled text field:host
has-valueSet when the element has a value:host
has-labelSet when the element has a label:host
invalidSet when the element is invalid:host
focusedSet when the element is focused:host
focus-ringSet when the element is keyboard focused:host
readonlySet to a readonly text field:host
* See * ThemableMixin – how to apply styles for shadow parts */ @NpmPackage( name = "@vaadin/vaadin", version = Vaadin.VERSION ) @Import( module = "@vaadin/vaadin-text-field/theme/lumo/vaadin-text-area.js" ) public interface TextAreaElement extends HTMLElement, TextFieldMixin, ThemableMixin { static String TAGNAME() { return "vaadin-text-area"; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy