* Render helper for the optional count bubble * @param {string} count The data-count attribute * @param {string} heightClass The height class to apply for spacing * @return {Element}
(count, heightClass)
| 109 | * @return {Element} |
| 110 | */ |
| 111 | renderCount(count, heightClass) { |
| 112 | Util.log('&type=pidget&button_count=1'); |
| 113 | return Util.make(this.element.ownerDocument, { |
| 114 | 'span': { |
| 115 | class: `-amp-pinterest-bubble-${this.count}${heightClass}`, |
| 116 | textContent: this.formatPinCount(count), |
| 117 | }, |
| 118 | }); |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Render the follow button |
no test coverage detected