| OLD | NEW |
| (Empty) |
| 1 <!-- | |
| 2 @license | |
| 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 | |
| 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 | |
| 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 | |
| 9 --><html><head><link rel="import" href="../polymer/polymer.html"> | |
| 10 <link rel="import" href="../iron-autogrow-textarea/iron-autogrow-textarea.html"> | |
| 11 <link rel="import" href="../iron-form-element-behavior/iron-form-element-behavio
r.html"> | |
| 12 <link rel="import" href="paper-input-behavior.html"> | |
| 13 <link rel="import" href="paper-input-container.html"> | |
| 14 <link rel="import" href="paper-input-error.html"> | |
| 15 <link rel="import" href="paper-input-char-counter.html"> | |
| 16 | |
| 17 <!-- | |
| 18 `<paper-textarea>` is a multi-line text field with Material Design styling. | |
| 19 | |
| 20 <paper-textarea label="Textarea label"></paper-textarea> | |
| 21 | |
| 22 See `Polymer.PaperInputBehavior` for more API docs. | |
| 23 | |
| 24 ### Validation | |
| 25 | |
| 26 Currently only `required` and `maxlength` validation is supported. | |
| 27 | |
| 28 ### Styling | |
| 29 | |
| 30 See `Polymer.PaperInputContainer` for a list of custom properties used to | |
| 31 style this element. | |
| 32 --> | |
| 33 | |
| 34 </head><body><dom-module id="paper-textarea"> | |
| 35 <template> | |
| 36 | |
| 37 <paper-input-container no-label-float$="[[noLabelFloat]]" auto-validate$="[[
autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]"> | |
| 38 | |
| 39 <label hidden$="[[!label]]">[[label]]</label> | |
| 40 | |
| 41 <iron-autogrow-textarea id="input" class="paper-input-input" bind-value="{
{value}}" required$="[[required]]" maxlength$="[[maxlength]]"></iron-autogrow-te
xtarea> | |
| 42 | |
| 43 <template is="dom-if" if="[[errorMessage]]"> | |
| 44 <paper-input-error>[[errorMessage]]</paper-input-error> | |
| 45 </template> | |
| 46 | |
| 47 <template is="dom-if" if="[[charCounter]]"> | |
| 48 <paper-input-char-counter></paper-input-char-counter> | |
| 49 </template> | |
| 50 | |
| 51 </paper-input-container> | |
| 52 | |
| 53 </template> | |
| 54 | |
| 55 </dom-module> | |
| 56 | |
| 57 <script src="paper-textarea-extracted.js"></script></body></html> | |
| OLD | NEW |