Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

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

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

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

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
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

web-components

FAQs

Package last updated on 03 Jun 2017

Did you know?

Socket

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