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

Side by Side Diff: ui/webui/resources/cr_elements/cr_input/cr_input.html

Issue 976713007: Add a readonly attribute to cr-input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | ui/webui/resources/cr_elements/cr_input/cr_input.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html"> 1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/paper-input/paper-input-deco rator.html"> 2 <link rel="import" href="chrome://resources/polymer/paper-input/paper-input-deco rator.html">
3 <link rel="import" href="chrome://resources/polymer/core-input/core-input.html"> 3 <link rel="import" href="chrome://resources/polymer/core-input/core-input.html">
4 <link rel="import" href="chrome://resources/cr_elements/cr_events/cr_events.html "> 4 <link rel="import" href="chrome://resources/cr_elements/cr_events/cr_events.html ">
5 5
6 <polymer-element name="cr-input"> 6 <polymer-element name="cr-input">
7 <template> 7 <template>
8 <link rel="stylesheet" href="cr_input.css"> 8 <link rel="stylesheet" href="cr_input.css">
9 <cr-events id="events"></cr-events> 9 <cr-events id="events"></cr-events>
10 10
11 <!-- TODO(jlklein): Use 'autoValidate' instead of isInvalid binding when 11 <!-- TODO(jlklein): Use 'autoValidate' instead of isInvalid binding when
12 updated to 0.5.4. --> 12 updated to 0.5.4. -->
13 <paper-input-decorator id="decorator" label="{{label}}" 13 <paper-input-decorator id="decorator" label="{{label}}"
14 floatingLabel="{{floatingLabel}}" value="{{value}}" 14 floatingLabel="{{floatingLabel}}" value="{{value}}"
15 disabled?="{{disabled}}" error="{{error}}" 15 disabled?="{{disabled}}" error="{{error}}"
16 isInvalid="{{!$.input.validity.valid}}"> 16 isInvalid="{{!$.input.validity.valid}}">
17 <input is="core-input" id="input" value="{{value}}" 17 <input is="core-input" id="input" value="{{value}}"
18 committedValue="{{committedValue}}" disabled?="{{disabled}}" 18 committedValue="{{committedValue}}" disabled?="{{disabled}}"
19 required?="{{required}}" type="{{type}}"> 19 required?="{{required}}" readonly?="{{readonly}}" type="{{type}}">
Oren Blasberg 2015/03/04 20:25:44 Where does "readonly?" come from? When I search th
20 </paper-input-decorator> 20 </paper-input-decorator>
21 </template> 21 </template>
22 <script src="cr_input.js"></script> 22 <script src="cr_input.js"></script>
23 </polymer-element> 23 </polymer-element>
OLDNEW
« no previous file with comments | « no previous file | ui/webui/resources/cr_elements/cr_input/cr_input.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698