Chromium Code Reviews| Index: third_party/polymer/v0_8/components-chromium/paper-item/paper-icon-item-extracted.js |
| diff --git a/third_party/polymer/v0_8/components-chromium/paper-item/paper-icon-item-extracted.js b/third_party/polymer/v0_8/components-chromium/paper-item/paper-icon-item-extracted.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ec59a359e6f9f294808c5bf6fe3b5ff295e19700 |
| --- /dev/null |
| +++ b/third_party/polymer/v0_8/components-chromium/paper-item/paper-icon-item-extracted.js |
| @@ -0,0 +1,38 @@ |
| + |
| + |
| +(function() { |
| + |
| + Polymer({ |
| + |
| + is: 'paper-icon-item', |
| + |
| + enableCustomStyleProperties: true, |
| + |
| + hostAttributes: { |
| + 'role': 'listitem' |
| + }, |
| + |
| + properties: { |
| + |
| + /** |
| + * The width of the icon area. |
| + * |
| + * @attribute iconWidth |
| + * @type String |
| + * @default '56px' |
| + */ |
| + iconWidth: { |
| + type: String, |
| + value: '56px' |
| + } |
| + |
| + }, |
| + |
| + ready: function() { |
| + this.$.contentIcon.style.width = this.iconWidth; |
| + } |
| + |
| + }); |
| + |
| +})(); |
| + |