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

com.vaadin.polymer.paper.PaperInputErrorElement Maven / Gradle / Ivy

The newest version!
/*
 * This code was generated with Vaadin Web Component GWT API Generator, 
 * from paper-input project by The Polymer Authors
 * that is licensed with http://polymer.github.io/LICENSE.txt license.
 */
package com.vaadin.polymer.paper;

import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

/**
 * 

<paper-input-error> is an error message for use with <paper-input-container>. The error is
displayed when the <paper-input-container> is invalid.

*
<paper-input-container>
 *   <input is="iron-input" pattern="[0-9]*">
 *   <paper-input-error>Only numbers are allowed!</paper-input-error>
 * </paper-input-container>
 * 
 * 
 * 

Styling

*

The following custom properties and mixins are available for styling:

* * * * * * * * * * * * * * * * * * * * *
Custom propertyDescriptionDefault
--paper-input-container-invalid-colorThe foreground color of the error--error-color
--paper-input-errorMixin applied to the error{}
*/ @JsType(isNative=true) public interface PaperInputErrorElement extends HTMLElement { @JsOverlay public static final String TAG = "paper-input-error"; @JsOverlay public static final String SRC = "paper-input/paper-textarea.html"; /** *

True if the error is showing.

* * JavaScript Info: * @property invalid * @type Boolean * */ @JsProperty boolean getInvalid(); /** *

True if the error is showing.

* * JavaScript Info: * @property invalid * @type Boolean * */ @JsProperty void setInvalid(boolean value); /** *

This overrides the update function in PaperInputAddonBehavior.

* * JavaScript Info: * @method update * @param {{inputElement: (Element|undefined), value: (string|undefined), invalid: boolean}} state * * */ void update(Object state); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy