ApplicationImpl cleanup, part 1:
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-input / paper-textarea.html
blob5ed0971272d9ce0dee74e60c0f486e25645e4c03
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.github.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/CONTRIBUTORS.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/PATENTS.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="paper-input-behavior.html">
12 <link rel="import" href="paper-input-container.html">
13 <link rel="import" href="paper-input-error.html">
14 <link rel="import" href="paper-input-char-counter.html">
16 <!--
17 `<paper-textarea>` is a multi-line text field with Material Design styling.
19 <paper-textarea label="Textarea label"></paper-textarea>
21 See `Polymer.PaperInputBehavior` for more API docs.
23 ### Validation
25 Currently only `required` and `maxlength` validation is supported.
27 ### Styling
29 See `Polymer.PaperInputContainer` for a list of custom properties used to
30 style this element.
31 -->
33 </head><body><dom-module id="paper-textarea">
34 <template>
36 <paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]">
38 <label hidden$="[[!label]]">[[label]]</label>
40 <iron-autogrow-textarea id="input" class="paper-input-input" bind-value="{{value}}" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]"></iron-autogrow-textarea>
42 <template is="dom-if" if="[[errorMessage]]">
43 <paper-input-error>[[errorMessage]]</paper-input-error>
44 </template>
46 <template is="dom-if" if="[[charCounter]]">
47 <paper-input-char-counter></paper-input-char-counter>
48 </template>
50 </paper-input-container>
52 </template>
54 </dom-module>
56 <script src="paper-textarea-extracted.js"></script></body></html>