| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @license | 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 10 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> | 10 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> |
| 11 <link rel="import" href="../paper-styles/default-theme.html"> | 11 <link rel="import" href="../paper-styles/default-theme.html"> |
| 12 <link rel="import" href="../paper-styles/typography.html"> | 12 <link rel="import" href="../paper-styles/typography.html"> |
| 13 | 13 |
| 14 <!-- | 14 <!-- |
| 15 `<paper-input-container>` is a container for a `<label>`, an `<input is="iron-in
put">` or | 15 `<paper-input-container>` is a container for a `<label>`, an `<input is="iron-in
put">` or |
| 16 `<iron-autogrow-textarea>` and optional add-on elements such as an error message
or character | 16 `<iron-autogrow-textarea>` and optional add-on elements such as an error message
or character |
| 17 counter, used to implement Material Design text fields. | 17 counter, used to implement Material Design text fields. |
| 18 | 18 |
| 19 For example: | 19 For example: |
| 20 | 20 |
| 21 <paper-input-container> | 21 <paper-input-container> |
| 22 <label>Your name</label> | 22 <label>Your name</label> |
| 23 <input is="iron-input"> | 23 <input is="iron-input"> |
| 24 </paper-input-container> | 24 </paper-input-container> |
| 25 | 25 |
| 26 Do not wrap <paper-input-contanter> around elements that already include it, suc
h as <paper-input>. | 26 Do not wrap `<paper-input-container>` around elements that already include it, s
uch as `<paper-input>`. |
| 27 Doing so may cause events to bounce infintely between the container and its cont
ained element. | 27 Doing so may cause events to bounce infintely between the container and its cont
ained element. |
| 28 | 28 |
| 29 ### Listening for input changes | 29 ### Listening for input changes |
| 30 | 30 |
| 31 By default, it listens for changes on the `bind-value` attribute on its children
nodes and perform | 31 By default, it listens for changes on the `bind-value` attribute on its children
nodes and perform |
| 32 tasks such as auto-validating and label styling when the `bind-value` changes. Y
ou can configure | 32 tasks such as auto-validating and label styling when the `bind-value` changes. Y
ou can configure |
| 33 the attribute it listens to with the `attr-for-value` attribute. | 33 the attribute it listens to with the `attr-for-value` attribute. |
| 34 | 34 |
| 35 ### Using a custom input element | 35 ### Using a custom input element |
| 36 | 36 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 <div class="focused-line"></div> | 326 <div class="focused-line"></div> |
| 327 </div> | 327 </div> |
| 328 | 328 |
| 329 <div class$="[[_computeAddOnContentClass(focused,invalid)]]"> | 329 <div class$="[[_computeAddOnContentClass(focused,invalid)]]"> |
| 330 <content id="addOnContent" select="[add-on]"></content> | 330 <content id="addOnContent" select="[add-on]"></content> |
| 331 </div> | 331 </div> |
| 332 </template> | 332 </template> |
| 333 </dom-module> | 333 </dom-module> |
| 334 | 334 |
| 335 <script src="paper-input-container-extracted.js"></script></body></html> | 335 <script src="paper-input-container-extracted.js"></script></body></html> |
| OLD | NEW |