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

com.vaadin.polymer.paper.widget.PaperInputError 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.widget;

import com.vaadin.polymer.paper.*;

import com.vaadin.polymer.*;
import com.vaadin.polymer.elemental.*;
import com.vaadin.polymer.PolymerWidget;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.core.client.JavaScriptObject;

/**
 * 

<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{}
*/ public class PaperInputError extends PolymerWidget { /** * Default Constructor. */ public PaperInputError() { this(""); } /** * Constructor used by UIBinder to create widgets with content. */ public PaperInputError(String html) { super(PaperInputErrorElement.TAG, PaperInputErrorElement.SRC, html); } /** * Gets a handle to the Polymer object's underlying DOM element. */ public PaperInputErrorElement getPolymerElement() { return (PaperInputErrorElement) getElement(); } /** *

True if the error is showing.

* * JavaScript Info: * @property invalid * @type Boolean * */ public boolean getInvalid() { return getPolymerElement().getInvalid(); } /** *

True if the error is showing.

* * JavaScript Info: * @property invalid * @type Boolean * */ public void setInvalid(boolean value) { getPolymerElement().setInvalid(value); } /** *

This overrides the update function in PaperInputAddonBehavior.

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy