Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-input/paper-textarea-extracted.js

Issue 1287713002: [MD settings] merge polymer 1.0.11; hack for settings checkbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1
2
3 (function() { 1 (function() {
4 2
5 Polymer({ 3 Polymer({
6 4
7 is: 'paper-textarea', 5 is: 'paper-textarea',
8 6
9 behaviors: [ 7 behaviors: [
10 Polymer.PaperInputBehavior 8 Polymer.PaperInputBehavior
11 ], 9 ],
12 10
13 properties: { 11 properties: {
14 12
15 _ariaLabelledBy: { 13 _ariaLabelledBy: {
16 observer: '_ariaLabelledByChanged', 14 observer: '_ariaLabelledByChanged',
17 type: String 15 type: String
18 }, 16 },
19 17
20 _ariaDescribedBy: { 18 _ariaDescribedBy: {
21 observer: '_ariaDescribedByChanged', 19 observer: '_ariaDescribedByChanged',
22 type: String 20 type: String
23 } 21 },
22
23 /**
24 * The initial number of rows.
25 *
26 * @attribute rows
27 * @type number
28 * @default 1
29 */
30 rows: {
31 type: Number,
32 value: 1
33 },
34
35 /**
36 * The maximum number of rows this element can grow to until it
37 * scrolls. 0 means no maximum.
38 *
39 * @attribute maxRows
40 * @type number
41 * @default 0
42 */
43 maxRows: {
44 type: Number,
45 value: 0
46 },
24 47
25 }, 48 },
26 49
27 _ariaLabelledByChanged: function(ariaLabelledBy) { 50 _ariaLabelledByChanged: function(ariaLabelledBy) {
28 this.$.input.textarea.setAttribute('aria-labelledby', ariaLabelledBy); 51 this.$.input.textarea.setAttribute('aria-labelledby', ariaLabelledBy);
29 }, 52 },
30 53
31 _ariaDescribedByChanged: function(ariaDescribedBy) { 54 _ariaDescribedByChanged: function(ariaDescribedBy) {
32 this.$.input.textarea.setAttribute('aria-describedby', ariaDescribedBy); 55 this.$.input.textarea.setAttribute('aria-describedby', ariaDescribedBy);
33 } 56 }
34 57
35 }); 58 });
36 59
37 })(); 60 })();
38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698