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-email-input demo</title> |
| 19 |
| 20 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 21 <link rel="import" href="../gold-email-input.html"> |
| 22 |
| 23 <link rel="stylesheet" href="../../paper-styles/paper-styles.html"> |
| 24 <link rel="import" href="../../paper-styles/demo-pages.html"> |
| 25 |
| 26 </head> |
| 27 <body> |
| 28 <div class="vertical-section-container centered"> |
| 29 <h4>Standard</h4> |
| 30 <div class="vertical-section"> |
| 31 <gold-email-input></gold-email-input> |
| 32 <gold-email-input label="Auto-validating" auto-validate></gold-email-input
> |
| 33 </div> |
| 34 |
| 35 <h4>Pre-validated</h4> |
| 36 <div class="vertical-section"> |
| 37 <gold-email-input auto-validate value="batman@gotham.org"></gold-email-inp
ut> |
| 38 <gold-email-input auto-validate value="not-a-thing.email"></gold-email-inp
ut> |
| 39 </div> |
| 40 |
| 41 <h4>Custom error message</h4> |
| 42 <div class="vertical-section"> |
| 43 <gold-email-input required auto-validate error-message="Please enter a val
id email" label="Email contact"></gold-email-input> |
| 44 </div> |
| 45 </div> |
| 46 </body> |
OLD | NEW |