Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: ui/webui/resources/cr_elements/v0_8/cr_input/cr_input.js

Issue 1137873006: cr-elements fixes for Polymer 0.8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698