Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: polymer_1.0.4/bower_components/paper-input/demo/index.html

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>paper-input demo</title>
19
20 <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
21
22 <link rel="import" href="../paper-input.html">
23 <link rel="import" href="../paper-input-container.html">
24 <link rel="import" href="../paper-input-error.html">
25 <link rel="import" href="../paper-input-char-counter.html">
26 <link rel="import" href="../paper-textarea.html">
27 <link rel="import" href="../../iron-input/iron-input.html">
28 <link rel="import" href="ssn-input.html">
29
30 <link rel="stylesheet" href="../../paper-styles/paper-styles.html">
31 <link rel="import" href="../../paper-styles/demo-pages.html">
32
33 <style>
34 body {
35 padding: 40px;
36 }
37 </style>
38
39 </head>
40 <body unresolved>
41
42 <div class="vertical center-justified layout">
43 <h4>Text input</h4>
44 <div class="vertical-section">
45 <paper-input label="label"></paper-input>
46
47 <paper-input label="password" type="password"></paper-input>
48
49 <paper-input no-label-float label="label (no-label-float)"></paper-input>
50
51 <paper-input label="disabled" disabled></paper-input>
52 </div>
53
54 <h4>Text area</h4>
55 <div class="vertical-section">
56 <paper-textarea label="textarea label"></paper-textarea>
57 </div>
58
59 <h4>Validation</h4>
60 <div class="vertical-section">
61 <paper-input label="only type letters (auto-validate)" auto-validate patte rn="[a-zA-Z]*" error-message="letters only!"></paper-input>
62
63 <paper-input id="inputForValidation" required label="only type letters (no auto validate)" pattern="[a-zA-Z]*" error-message="letters only, required input !"></paper-input>
64 <br>
65 <button onclick="validate()">Validate!</button>
66 </div>
67
68 <h4>Character counter</h4>
69 <div class="vertical-section">
70 <paper-input label="label" char-counter></paper-input>
71
72 <paper-input label="at most 10 letters" char-counter auto-validate pattern ="[a-zA-Z]*" maxlength="10" error-message="letters only!"></paper-input>
73
74 <paper-textarea label="textarea" char-counter></paper-textarea>
75
76 <paper-textarea label="textarea with maxlength" char-counter maxlength="10 "></paper-textarea>
77 </div>
78
79 <h4>Complex inputs</h4>
80 <div class="vertical-section">
81 <template is="dom-bind">
82 <paper-input-container always-float-label auto-validate attr-for-value=" value">
83 <label>Social Security Number</label>
84 <ssn-input class="paper-input-input"></ssn-input>
85 <paper-input-error>SSN invalid!</paper-input-error>
86 </paper-input-container>
87 </template>
88 </div>
89 </div>
90 <script>
91 function validate() {
92 document.getElementById('inputForValidation').validate();
93 }
94 </script>
95 </body>
96 </html>
OLDNEW
« no previous file with comments | « polymer_1.0.4/bower_components/paper-input/bower.json ('k') | polymer_1.0.4/bower_components/paper-input/demo/ssn-input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698