| 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 wrapping `paper-input`. | 8 * element wrapping `paper-input`. |
| 9 * | 9 * |
| 10 * Example: | 10 * Example: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 type: Boolean, | 34 type: Boolean, |
| 35 value: false | 35 value: false |
| 36 }, | 36 }, |
| 37 | 37 |
| 38 /** | 38 /** |
| 39 * The current value of the input. | 39 * The current value of the input. |
| 40 */ | 40 */ |
| 41 value: { | 41 value: { |
| 42 type: String, | 42 type: String, |
| 43 value: '', | 43 value: '', |
| 44 notify: true, |
| 44 }, | 45 }, |
| 45 | 46 |
| 46 /** | 47 /** |
| 47 * The validation pattern for the input. | 48 * The validation pattern for the input. |
| 48 */ | 49 */ |
| 49 pattern: String, | 50 pattern: String, |
| 50 | 51 |
| 51 /** | 52 /** |
| 52 * The type of the input (password, date, etc.). | 53 * The type of the input (password, date, etc.). |
| 53 */ | 54 */ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 69 */ | 70 */ |
| 70 focus: function() { | 71 focus: function() { |
| 71 this.$.input.focus(); | 72 this.$.input.focus(); |
| 72 }, | 73 }, |
| 73 | 74 |
| 74 /** @override */ | 75 /** @override */ |
| 75 ready: function() { | 76 ready: function() { |
| 76 this.$.events.forward(this.$.input, ['change']); | 77 this.$.events.forward(this.$.input, ['change']); |
| 77 }, | 78 }, |
| 78 }); | 79 }); |
| OLD | NEW |