Update Polymer and pull in iron-list
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-input / paper-textarea-extracted.js
blob36ede0c0f090e82346c648f4c37916ce9dfb9c9c
2   Polymer({
3     is: 'paper-textarea',
5     behaviors: [
6       Polymer.PaperInputBehavior
7     ],
9     properties: {
10       _ariaLabelledBy: {
11         observer: '_ariaLabelledByChanged',
12         type: String
13       },
15       _ariaDescribedBy: {
16         observer: '_ariaDescribedByChanged',
17         type: String
18       },
20       /**
21        * The initial number of rows.
22        *
23        * @attribute rows
24        * @type number
25        * @default 1
26        */
27       rows: {
28         type: Number,
29         value: 1
30       },
32       /**
33        * The maximum number of rows this element can grow to until it
34        * scrolls. 0 means no maximum.
35        *
36        * @attribute maxRows
37        * @type number
38        * @default 0
39        */
40       maxRows: {
41        type: Number,
42        value: 0
43       }
44     },
46     _ariaLabelledByChanged: function(ariaLabelledBy) {
47       this.$.input.textarea.setAttribute('aria-labelledby', ariaLabelledBy);
48     },
50     _ariaDescribedByChanged: function(ariaDescribedBy) {
51       this.$.input.textarea.setAttribute('aria-describedby', ariaDescribedBy);
52     }
53   });