| 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 --> | 9 --> |
| 10 <link rel="import" href="../polymer/polymer.html"> | 10 <link rel="import" href="../polymer/polymer.html"> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 ### Styling | 29 ### Styling |
| 30 | 30 |
| 31 See `Polymer.PaperInputContainer` for a list of custom properties used to | 31 See `Polymer.PaperInputContainer` for a list of custom properties used to |
| 32 style this element. | 32 style this element. |
| 33 --> | 33 --> |
| 34 | 34 |
| 35 <dom-module id="paper-textarea"> | 35 <dom-module id="paper-textarea"> |
| 36 <template> | 36 <template> |
| 37 | 37 |
| 38 <paper-input-container no-label-float$="[[noLabelFloat]]" auto-validate$="[[
autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> | 38 <paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label
="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[
autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> |
| 39 | 39 |
| 40 <label hidden$="[[!label]]">[[label]]</label> | 40 <label hidden$="[[!label]]">[[label]]</label> |
| 41 | 41 |
| 42 <iron-autogrow-textarea id="input" class="paper-input-input" | 42 <iron-autogrow-textarea id="input" class="paper-input-input" |
| 43 bind-value="{{value}}" | 43 bind-value="{{value}}" |
| 44 autocomplete$="[[autocomplete]]" |
| 45 autofocus$="[[autofocus]]" |
| 46 inputmode$="[[inputmode]]" |
| 47 name$="[[name]]" |
| 48 placeholder$="[[placeholder]]" |
| 49 readonly$="[[readonly]]" |
| 44 required$="[[required]]" | 50 required$="[[required]]" |
| 45 maxlength$="[[maxlength]]"></iron-autogrow-textarea> | 51 maxlength$="[[maxlength]]"></iron-autogrow-textarea> |
| 46 | 52 |
| 47 <template is="dom-if" if="[[errorMessage]]"> | 53 <template is="dom-if" if="[[errorMessage]]"> |
| 48 <paper-input-error>[[errorMessage]]</paper-input-error> | 54 <paper-input-error>[[errorMessage]]</paper-input-error> |
| 49 </template> | 55 </template> |
| 50 | 56 |
| 51 <template is="dom-if" if="[[charCounter]]"> | 57 <template is="dom-if" if="[[charCounter]]"> |
| 52 <paper-input-char-counter></paper-input-char-counter> | 58 <paper-input-char-counter></paper-input-char-counter> |
| 53 </template> | 59 </template> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 97 |
| 92 _ariaDescribedByChanged: function(ariaDescribedBy) { | 98 _ariaDescribedByChanged: function(ariaDescribedBy) { |
| 93 this.$.input.textarea.setAttribute('aria-describedby', ariaDescribedBy); | 99 this.$.input.textarea.setAttribute('aria-describedby', ariaDescribedBy); |
| 94 } | 100 } |
| 95 | 101 |
| 96 }); | 102 }); |
| 97 | 103 |
| 98 })(); | 104 })(); |
| 99 | 105 |
| 100 </script> | 106 </script> |
| OLD | NEW |