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