Comments (1)
I don't think tying them together needs to be that complicated. Since cardType
is a notify property, you can just do something like:
<gold-cc-input auto-validate card-type="{{cardType}}"></gold-cc-input>
<gold-cc-cvc-input amex="[[_computeAmex(cardType)]]"></gold-cc-cvc-input>
I realize that's a bit annoying, however, so I'll change gold cc-cvc-input
to have a cardType
property instead of amex
, so that you can just write:
<gold-cc-input auto-validate card-type="{{cardType}}"></gold-cc-input>
<gold-cc-cvc-input card-type="{{cardType}}"></gold-cc-cvc-input>
from gold-cc-cvc-input.
Related Issues (12)
- gold-cc-cvc-input accessibility issues HOT 2
- Doesn't accept numpad entry HOT 1
- Standard CVC should validate on both 3 and 4 digits HOT 1
- The demo is not visible in the elements catalog HOT 3
- The demo is not visible in the elements catalog HOT 4
- CVC Icon does not becomes hidden on chrome when using shadow dom
- Number of digits allowed by default HOT 2
- Validation state of this and other gold-* inputs cannot be reset HOT 1
- Invalid property is only true when user has introduced and deleted input HOT 3
- gold-cc-cvc-input img.src paths are relative to document url
- demo styles need fixing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gold-cc-cvc-input.