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