| OLD | NEW |
| 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 | |
| OLD | NEW |