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

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

Issue 1187823002: Update Polymer components and re-run reproduce.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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 2
3 /** 3 /**
4 * Use `Polymer.PaperInputAddonBehavior` to implement an add-on for `<paper-in put-container>`. A 4 * 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 5 * 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. 6 * validity such as a character counter or an error message.
7 * @polymerBehavior 7 * @polymerBehavior
8 */ 8 */
9 Polymer.PaperInputAddonBehavior = { 9 Polymer.PaperInputAddonBehavior = {
10 10
11 hostAttributes: { 11 hostAttributes: {
12 'add-on': '' 12 'add-on': ''
13 }, 13 },
14 14
15 attached: function() { 15 attached: function() {
16 this.fire('addon-attached'); 16 this.fire('addon-attached');
17 }, 17 },
18 18
19 /** 19 /**
20 * The function called by `<paper-input-container>` when the input value or validity changes. 20 * The function called by `<paper-input-container>` when the input value or validity changes.
21 * @param {Object} state All properties are optional. 21 * @param {{
22 * @param {Node} state.inputElement The input element. 22 * inputElement: (Node|undefined),
23 * @param {String} state.value The input value. 23 * value: (string|undefined),
24 * @param {Boolean} state.invalid True if the input value is invalid. 24 * invalid: (boolean|undefined)
25 * }} state All properties are optional -
26 * inputElement: The input element.
27 * value: The input value.
28 * invalid: True if the input value is invalid.
25 */ 29 */
26 update: function(state) { 30 update: function(state) {
27 } 31 }
28 32
29 }; 33 };
30 34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698