PolymerElements / gold-cc-input

An input element that only allows credit card numbers
https://webcomponents.org/element/PolymerElements/gold-cc-input
13 stars 23 forks source link

[WIP, experiment] reuse a paper-input template #27

Closed notwaldorf closed 8 years ago

notwaldorf commented 9 years ago

Don't land this yet!

What it's solving: copy pasting all the attributes that need to be passed down to the paper-input. How it's solving it: by re-using the paper-input's template and sort of becoming a paper-input.

To make this work, this would require a similar change to paper-input.

  1. the paper-inputs dom-module would become <dom-module id="paper-input-content">
  2. it would need a similar _prepTemplate method:
_prepTemplate: function() {
      var t = Polymer.DomModule.import('paper-input-content', 'template').cloneNode(true);
      this._template = t;
    },
cdata commented 9 years ago

Looking interesting :)

notwaldorf commented 8 years ago

Going to close this PR and reopen it when we're more ready for this future :)