summaryrefslogtreecommitdiffstats
path: root/third_party/polymer/v0_8/components-chromium/paper-item/paper-icon-item-extracted.js
blob: ec59a359e6f9f294808c5bf6fe3b5ff295e19700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
    }

  });

})();