OLD | NEW |
| (Empty) |
1 | |
2 | |
3 /** | |
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 | |
6 * validity such as a character counter or an error message. | |
7 * @polymerBehavior | |
8 */ | |
9 Polymer.PaperInputAddonBehavior = { | |
10 | |
11 hostAttributes: { | |
12 'add-on': '' | |
13 }, | |
14 | |
15 attached: function() { | |
16 this.fire('addon-attached'); | |
17 }, | |
18 | |
19 /** | |
20 * The function called by `<paper-input-container>` when the input value or
validity changes. | |
21 * @param {Object} state All properties are optional. | |
22 * @param {Node} state.inputElement The input element. | |
23 * @param {String} state.value The input value. | |
24 * @param {Boolean} state.invalid True if the input value is invalid. | |
25 */ | |
26 update: function(state) { | |
27 } | |
28 | |
29 }; | |
30 | |
OLD | NEW |