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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-input/paper-input-error-extracted.js

Issue 1221923003: Update bower.json for Polymer elements and add PRESUBMIT.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 1
2 2
3 (function() { 3 (function() {
4 4
5 Polymer({ 5 Polymer({
6 6
7 is: 'paper-input-error', 7 is: 'paper-input-error',
8 8
9 behaviors: [ 9 behaviors: [
10 Polymer.PaperInputAddonBehavior 10 Polymer.PaperInputAddonBehavior
11 ], 11 ],
12 12
13 hostAttributes: {
14 'role': 'alert'
15 },
16
17 properties: { 13 properties: {
18 14
19 /** 15 /**
20 * True if the error is showing. 16 * True if the error is showing.
21 */ 17 */
22 invalid: { 18 invalid: {
23 readOnly: true, 19 readOnly: true,
24 reflectToAttribute: true, 20 reflectToAttribute: true,
25 type: Boolean 21 type: Boolean
26 } 22 }
27 23
28 }, 24 },
29 25
30 update: function(state) { 26 update: function(state) {
31 this._setInvalid(state.invalid); 27 this._setInvalid(state.invalid);
32 } 28 }
33 29
34 }) 30 })
35 31
36 })(); 32 })();
37 33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698