Socket
Socket
Sign inDemoInstall

@npm-polymer/gold-cc-expiration-input

Package Overview
Dependencies
14
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @npm-polymer/gold-cc-expiration-input

A validating input for a credit card expiration date


Version published
Weekly downloads
2
Maintainers
1
Install size
1.69 MB
Created
Weekly downloads
 

Readme

Source

Build status

Demo and API docs

##<gold-cc-expiration-input>

gold-cc-expiration-input is a single-line text field with Material Design styling for entering a credit card's expiration date

<gold-cc-expiration-input></gold-cc-expiration-input>
<gold-cc-expiration-input value="11/15"></gold-cc-expiration-input>

It may include an optional label, which by default is "Expiration Date".

<gold-cc-expiration-input label="Date"></gold-cc-expiration-input>

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.

Keywords

FAQs

Last updated on 03 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc