ApplicationImpl cleanup, part 1:
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / paper-input / paper-input-addon-behavior-extracted.js
blob14a5f1ab57ea4782e70d12a1281de64aa70d2d0a
3 /**
4 * Use `Polymer.PaperInputAddonBehavior` to implement an add-on for `<paper-input-container>`. A
5 * add-on appears below the input, and may display information based on the input value and
6 * validity such as a character counter or an error message.
7 * @polymerBehavior
8 */
9 Polymer.PaperInputAddonBehavior = {
11 hostAttributes: {
12 'add-on': ''
15 attached: function() {
16 this.fire('addon-attached');
19 /**
20 * The function called by `<paper-input-container>` when the input value or validity changes.
21 * @param {{
22 * inputElement: (Node|undefined),
23 * value: (string|undefined),
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.
30 update: function(state) {