| OLD | NEW |
| 1 /* Copyright 2015 The Chromium Authors. All rights reserved. | 1 /* Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'cr-input' is a single-line text field for user input. It is a convenience | 7 * 'cr-input' is a single-line text field for user input. It is a convenience |
| 8 * element composed of a 'paper-input-decorator' and a 'input is="core-input"'. | 8 * element composed of a 'paper-input-decorator' and a 'input is="core-input"'. |
| 9 * | 9 * |
| 10 * Example: | 10 * Example: |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 /** | 39 /** |
| 40 * Set to true to style the element as disabled. | 40 * Set to true to style the element as disabled. |
| 41 * | 41 * |
| 42 * @attribute disabled | 42 * @attribute disabled |
| 43 * @type boolean | 43 * @type boolean |
| 44 * @default false | 44 * @default false |
| 45 */ | 45 */ |
| 46 disabled: {value: false, reflect: true}, | 46 disabled: {value: false, reflect: true}, |
| 47 | 47 |
| 48 /** | 48 /** |
| 49 * Set to true to make the input read-only. |
| 50 * |
| 51 * @attribute readonly |
| 52 * @type boolean |
| 53 * @default false |
| 54 */ |
| 55 readonly: {value: false, reflect: true}, |
| 56 |
| 57 /** |
| 49 * Set to true to mark the input as required. | 58 * Set to true to mark the input as required. |
| 50 * | 59 * |
| 51 * @attribute required | 60 * @attribute required |
| 52 * @type boolean | 61 * @type boolean |
| 53 * @default false | 62 * @default false |
| 54 */ | 63 */ |
| 55 required: {value: false, reflect: true}, | 64 required: {value: false, reflect: true}, |
| 56 | 65 |
| 57 /** | 66 /** |
| 58 * The current value of the input. | 67 * The current value of the input. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 else | 128 else |
| 120 this.$.input.removeAttribute('pattern'); | 129 this.$.input.removeAttribute('pattern'); |
| 121 }, | 130 }, |
| 122 | 131 |
| 123 /** @override */ | 132 /** @override */ |
| 124 ready: function() { | 133 ready: function() { |
| 125 this.$.events.forward(this.$.input, ['change']); | 134 this.$.events.forward(this.$.input, ['change']); |
| 126 this.patternChanged(); | 135 this.patternChanged(); |
| 127 }, | 136 }, |
| 128 }); | 137 }); |
| OLD | NEW |