| 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-autogrow-textarea/iron-autogrow-textarea.html"> | 10 <link rel="import" href="../iron-autogrow-textarea/iron-autogrow-textarea.html"> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 Currently only `required` and `maxlength` validation is supported. | 25 Currently only `required` and `maxlength` validation is supported. |
| 26 | 26 |
| 27 ### Styling | 27 ### Styling |
| 28 | 28 |
| 29 See `Polymer.PaperInputContainer` for a list of custom properties used to | 29 See `Polymer.PaperInputContainer` for a list of custom properties used to |
| 30 style this element. | 30 style this element. |
| 31 --> | 31 --> |
| 32 | 32 |
| 33 </head><body><dom-module id="paper-textarea"> | 33 </head><body><dom-module id="paper-textarea"> |
| 34 <template> | 34 <template> |
| 35 <style> |
| 36 :host { |
| 37 display: block; |
| 38 } |
| 39 </style> |
| 35 | 40 |
| 36 <paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label
="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[
autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> | 41 <paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label
="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[
autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> |
| 37 | 42 |
| 38 <label hidden$="[[!label]]">[[label]]</label> | 43 <label hidden$="[[!label]]">[[label]]</label> |
| 39 | 44 |
| 40 <iron-autogrow-textarea id="input" class="paper-input-input" bind-value="{
{value}}" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$
="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[re
adonly]]" required$="[[required]]" maxlength$="[[maxlength]]" autocapitalize$="[
[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]"></iron-autogrow-text
area> | 45 <iron-autogrow-textarea id="input" class="paper-input-input" bind-value="{
{value}}" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$
="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[re
adonly]]" required$="[[required]]" maxlength$="[[maxlength]]" autocapitalize$="[
[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]"></iron-autogrow-text
area> |
| 41 | 46 |
| 42 <template is="dom-if" if="[[errorMessage]]"> | 47 <template is="dom-if" if="[[errorMessage]]"> |
| 43 <paper-input-error>[[errorMessage]]</paper-input-error> | 48 <paper-input-error>[[errorMessage]]</paper-input-error> |
| 44 </template> | 49 </template> |
| 45 | 50 |
| 46 <template is="dom-if" if="[[charCounter]]"> | 51 <template is="dom-if" if="[[charCounter]]"> |
| 47 <paper-input-char-counter></paper-input-char-counter> | 52 <paper-input-char-counter></paper-input-char-counter> |
| 48 </template> | 53 </template> |
| 49 | 54 |
| 50 </paper-input-container> | 55 </paper-input-container> |
| 51 | 56 |
| 52 </template> | 57 </template> |
| 53 | |
| 54 </dom-module> | 58 </dom-module> |
| 55 | 59 |
| 56 <script src="paper-textarea-extracted.js"></script></body></html> | 60 <script src="paper-textarea-extracted.js"></script></body></html> |
| OLD | NEW |