| OLD | NEW |
| (Empty) |
| 1 | |
| 2 Polymer('paper-fab',{ | |
| 3 | |
| 4 publish: { | |
| 5 | |
| 6 /** | |
| 7 * The URL of an image for the icon. If the src property is specified, | |
| 8 * the icon property should not be. | |
| 9 * | |
| 10 * @attribute src | |
| 11 * @type string | |
| 12 * @default '' | |
| 13 */ | |
| 14 src: '', | |
| 15 | |
| 16 /** | |
| 17 * Specifies the icon name or index in the set of icons available in | |
| 18 * the icon's icon set. If the icon property is specified, | |
| 19 * the src property should not be. | |
| 20 * | |
| 21 * @attribute icon | |
| 22 * @type string | |
| 23 * @default '' | |
| 24 */ | |
| 25 icon: '', | |
| 26 | |
| 27 /** | |
| 28 * Set this to true to style this is a "mini" FAB. | |
| 29 * | |
| 30 * @attribute mini | |
| 31 * @type boolean | |
| 32 * @default false | |
| 33 */ | |
| 34 mini: false, | |
| 35 | |
| 36 raised: true, | |
| 37 recenteringTouch: true, | |
| 38 fill: false | |
| 39 | |
| 40 }, | |
| 41 | |
| 42 iconChanged: function(oldIcon) { | |
| 43 var label = this.getAttribute('aria-label'); | |
| 44 if (!label || label === oldIcon) { | |
| 45 this.setAttribute('aria-label', this.icon); | |
| 46 } | |
| 47 } | |
| 48 | |
| 49 }); | |
| 50 | |
| 51 | |
| OLD | NEW |