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

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

Issue 1351623008: MD Settings: Languages model for language pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SingletonPrefs
Patch Set: Created 5 years, 3 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 /**
2 * 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
3 * 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
4 * validity such as a character counter or an error message. 6 * validity such as a character counter or an error message.
5 * @polymerBehavior 7 * @polymerBehavior
6 */ 8 */
7 Polymer.PaperInputAddonBehavior = { 9 Polymer.PaperInputAddonBehavior = {
8 10
9 hostAttributes: { 11 hostAttributes: {
10 'add-on': '' 12 'add-on': ''
11 }, 13 },
12 14
13 attached: function() { 15 attached: function() {
14 this.fire('addon-attached'); 16 this.fire('addon-attached');
15 }, 17 },
16 18
17 /** 19 /**
18 * 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.
19 * @param {{ 21 * @param {{
20 * inputElement: (Node|undefined), 22 * inputElement: (Node|undefined),
21 * value: (string|undefined), 23 * value: (string|undefined),
22 * invalid: (boolean|undefined) 24 * invalid: (boolean|undefined)
23 * }} state All properties are optional - 25 * }} state All properties are optional -
24 * inputElement: The input element. 26 * inputElement: The input element.
25 * value: The input value. 27 * value: The input value.
26 * invalid: True if the input value is invalid. 28 * invalid: True if the input value is invalid.
27 */ 29 */
28 update: function(state) { 30 update: function(state) {
29 } 31 }
30 32
31 }; 33 };
34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698