Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components / paper-input / paper-input-addon-behavior.html
blob0b021a5dd4a319f4b6fece8d4d53492bf7beb5c0
1 <!--
2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9 -->
11 <link rel="import" href="../polymer/polymer.html">
13 <script>
15 /**
16 * Use `Polymer.PaperInputAddonBehavior` to implement an add-on for `<paper-input-container>`. A
17 * add-on appears below the input, and may display information based on the input value and
18 * validity such as a character counter or an error message.
19 * @polymerBehavior
21 Polymer.PaperInputAddonBehavior = {
23 hostAttributes: {
24 'add-on': ''
27 attached: function() {
28 this.fire('addon-attached');
31 /**
32 * The function called by `<paper-input-container>` when the input value or validity changes.
33 * @param {{
34 * inputElement: (Node|undefined),
35 * value: (string|undefined),
36 * invalid: (boolean|undefined)
37 * }} state All properties are optional -
38 * inputElement: The input element.
39 * value: The input value.
40 * invalid: True if the input value is invalid.
42 update: function(state) {
47 </script>