typedoc-theme-yaf
Version:
A fresh, opinionated and standalone front-end documentation application consuming Typedoc generated data.
14 lines • 585 B
JavaScript
import { YafHTMLElement } from '../../index.js';
const countFontSize = '0.9rem';
export class YafWidgetCounter extends YafHTMLElement {
onConnect() {
if (!this.props.fontSize)
this.props.fontSize = countFontSize;
this.innerHTML = `[ <span class='count'>${this.props.count}</span> ]`;
if (this.props.fontSize)
this.setAttribute('style', `font-size: ${this.props.fontSize};`);
}
}
const yafWidgetCounter = 'yaf-widget-counter';
customElements.define(yafWidgetCounter, YafWidgetCounter);
//# sourceMappingURL=YafWidgetCounter.js.map