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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-input/paper-input-addon-behavior-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 1 /**
2
3 /**
4 * Use `Polymer.PaperInputAddonBehavior` to implement an add-on for `<paper-in put-container>`. A 2 * Use `Polymer.PaperInputAddonBehavior` to implement an add-on for `<paper-in put-container>`. A
5 * add-on appears below the input, and may display information based on the in put value and 3 * add-on appears below the input, and may display information based on the in put value and
6 * validity such as a character counter or an error message. 4 * validity such as a character counter or an error message.
7 * @polymerBehavior 5 * @polymerBehavior
8 */ 6 */
9 Polymer.PaperInputAddonBehavior = { 7 Polymer.PaperInputAddonBehavior = {
10 8
11 hostAttributes: { 9 hostAttributes: {
12 'add-on': '' 10 'add-on': ''
13 }, 11 },
14 12
15 attached: function() { 13 attached: function() {
16 this.fire('addon-attached'); 14 this.fire('addon-attached');
17 }, 15 },
18 16
19 /** 17 /**
20 * The function called by `<paper-input-container>` when the input value or validity changes. 18 * The function called by `<paper-input-container>` when the input value or validity changes.
21 * @param {{ 19 * @param {{
22 * inputElement: (Node|undefined), 20 * inputElement: (Node|undefined),
23 * value: (string|undefined), 21 * value: (string|undefined),
24 * invalid: (boolean|undefined) 22 * invalid: (boolean|undefined)
25 * }} state All properties are optional - 23 * }} state All properties are optional -
26 * inputElement: The input element. 24 * inputElement: The input element.
27 * value: The input value. 25 * value: The input value.
28 * invalid: True if the input value is invalid. 26 * invalid: True if the input value is invalid.
29 */ 27 */
30 update: function(state) { 28 update: function(state) {
31 } 29 }
32 30
33 }; 31 };
34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698