Name: gold-cc-expiration-input
Owner: PolymerElements
Description: An input element that only allows credit card expiration dates
Created: 2015-05-04 22:28:41.0
Updated: 2018-04-11 00:05:31.0
Pushed: 2018-05-23 02:25:20.0
Homepage: https://elements.polymer-project.org/elements/gold-cc-expiration-input?view=demo:demo/index.html
Size: 100
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
gold-cc-expiration-input
is a single-line text field with Material Design styling
for entering a credit card's expiration date
d-cc-expiration-input></gold-cc-expiration-input>
d-cc-expiration-input value="11/15"></gold-cc-expiration-input>
It may include an optional label, which by default is “Expiration Date”.
d-cc-expiration-input label="Date"></gold-cc-expiration-input>
The input can check whether the entered date is a valid, future date.
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.