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

com.vaadin.polymer.paper.PaperInputCharCounterElement 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-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 propertyDescriptionDefault
--paper-input-char-counterMixin applied to the element{}
*/ @JsType(isNative=true) public interface PaperInputCharCounterElement extends HTMLElement { @JsOverlay public static final String TAG = "paper-input-char-counter"; @JsOverlay public static final String SRC = "paper-input/paper-textarea.html"; /** *

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