OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 3 @license |
| 4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 5 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 7 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 8 Code distributed by Google as part of the polymer project is also |
| 9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 10 --> |
| 11 <html> |
| 12 <head> |
| 13 |
| 14 <meta charset="utf-8"> |
| 15 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 16 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> |
| 17 |
| 18 <title>gold-cc-expiration-input demo</title> |
| 19 |
| 20 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 21 <link rel="import" href="../gold-cc-expiration-input.html"> |
| 22 |
| 23 <link rel="stylesheet" href="../../paper-styles/paper-styles.html"> |
| 24 <link rel="import" href="../../paper-styles/demo-pages.html"> |
| 25 </head> |
| 26 <style> |
| 27 gold-cc-expiration-input { |
| 28 width: 200px; |
| 29 margin-left: auto; |
| 30 margin-right: auto; |
| 31 } |
| 32 </style> |
| 33 <body> |
| 34 <div class="vertical-section-container centered"> |
| 35 <h4>Standard</h4> |
| 36 <div class="vertical-section"> |
| 37 <gold-cc-expiration-input></gold-cc-expiration-input> |
| 38 <gold-cc-expiration-input label="Auto-validating" auto-validate></gold-cc-
expiration-input> |
| 39 </div> |
| 40 |
| 41 <h4>Pre-validated</h4> |
| 42 <div class="vertical-section"> |
| 43 <gold-cc-expiration-input auto-validate value="11/15"></gold-cc-expiration
-input> |
| 44 <gold-cc-expiration-input auto-validate value="31/23"></gold-cc-expiration
-input> |
| 45 <gold-cc-expiration-input auto-validate value="11/"></gold-cc-expiration-i
nput> |
| 46 </div> |
| 47 |
| 48 <h4>Custom error message</h4> |
| 49 <div class="vertical-section"> |
| 50 <gold-cc-expiration-input required auto-validate error-message="Please ent
er a valid date" label="Credit Card Expiration"></gold-cc-expiration-input> |
| 51 </div> |
| 52 </div> |
| 53 </body> |
OLD | NEW |