Name: gold-zip-input
Owner: PolymerElements
Description: An input element that only allows US zip codes
Created: 2015-05-08 22:45:37.0
Updated: 2018-04-11 00:06:10.0
Pushed: 2018-05-23 02:26:05.0
Homepage: https://elements.polymer-project.org/elements/gold-zip-input?view=demo:demo/index.html
Size: 99
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
gold-zip-input
is a single-line text field with Material Design styling
for entering a US zip code.
d-zip-input></gold-zip-input>
It may include an optional label, which by default is “Zip Code”.
d-zip-input label="Mailing zip code"></gold-zip-input>
The input supports both 5 digit zip codes (90210) or the full 9 digit ones, separated by a dash (90210-9999).
The input can be automatically validated as the user is typing by using
the auto-validate
and required
attributes. For manual validation, the
element also has a validate()
method, which returns the validity of the
input as well sets any appropriate error messages and styles.
See Polymer.PaperInputBehavior
for more API docs.
See Polymer.PaperInputContainer
for a list of custom properties used to
style this element.