com.vaadin.polymer.paper.widget.PaperInputCharCounter 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-char-counter>
is a character counter for use with <paper-input-container>
. It
shows the number of characters entered in the input and the max length if it is specified.
* <paper-input-container>
* <input is="iron-input" maxlength="20">
* <paper-input-char-counter></paper-input-char-counter>
* </paper-input-container>
*
*
*
Styling
* The following mixin is available for styling:
*
*
*
* Custom property
* Description
* Default
*
*
*
*
* --paper-input-char-counter
* Mixin applied to the element
* {}
*
*
*
*/
public class PaperInputCharCounter extends PolymerWidget {
/**
* Default Constructor.
*/
public PaperInputCharCounter() {
this("");
}
/**
* Constructor used by UIBinder to create widgets with content.
*/
public PaperInputCharCounter(String html) {
super(PaperInputCharCounterElement.TAG, PaperInputCharCounterElement.SRC, html);
}
/**
* Gets a handle to the Polymer object's underlying DOM element.
*/
public PaperInputCharCounterElement getPolymerElement() {
return (PaperInputCharCounterElement) getElement();
}
/**
* 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