Home | History | Annotate | Download | only in paper-icon-button
      1 
      2   
      3     Polymer('paper-icon-button', {
      4 
      5       publish: {
      6 
      7         /**
      8          * If true, the ripple expands to a square to fill the containing box.
      9          *
     10          * @attribute fill
     11          * @type boolean
     12          * @default false
     13          */
     14         fill: {value: false, reflect: true}
     15 
     16       },
     17 
     18       ready: function() {
     19         this.$.ripple.classList.add('recenteringTouch');
     20         this.fillChanged();
     21       },
     22 
     23       fillChanged: function() {
     24         this.$.ripple.classList.toggle('circle', !this.fill);
     25       },
     26 
     27       iconChanged: function(oldIcon) {
     28         if (!this.label) {
     29           this.setAttribute('aria-label', this.icon);
     30         }
     31       }
     32 
     33     });
     34     
     35