1 2 3 Polymer('core-icon-button', { 4 5 /** 6 * The URL of an image for the icon. Should not use `icon` property 7 * if you are using this property. 8 * 9 * @attribute src 10 * @type string 11 * @default '' 12 */ 13 src: '', 14 15 /** 16 * If true, border is placed around the button to indicate it's 17 * active state. 18 * 19 * @attribute active 20 * @type boolean 21 * @default false 22 */ 23 active: false, 24 25 /** 26 * Specifies the icon name or index in the set of icons available in 27 * the icon set. Should not use `src` property if you are using this 28 * property. 29 * 30 * @attribute icon 31 * @type string 32 * @default '' 33 */ 34 icon: '', 35 36 activeChanged: function() { 37 this.classList.toggle('selected', this.active); 38 } 39 40 }); 41 42