https://github.com/mshockwave/paper-date-input
https://github.com/mshockwave/paper-date-input
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mshockwave/paper-date-input
- Owner: mshockwave
- License: bsd-3-clause
- Created: 2016-02-19T09:04:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-19T09:13:38.000Z (over 10 years ago)
- Last Synced: 2024-04-23T17:24:52.571Z (about 2 years ago)
- Language: HTML
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
##<paper-date-input>
`paper-date-input` is a single-line text field with Material Design styling modified from `gold-cc-expiration-input`
It only supports `YYYY-MM-DD` format for now.
### Validation
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.
### Styling
See `Polymer.PaperInputContainer` for a list of custom properties used to
style this element.