typedoc-theme-yaf
Version:
A fresh, opinionated and standalone front-end documentation application consuming Typedoc generated data.
13 lines • 637 B
JavaScript
import { YafHTMLElement } from '../../index.js';
import { makeElement } from '../../yafElement.js';
export class YafWidgetFlags extends YafHTMLElement {
onConnect() {
const { flags, comment } = this.props;
const allFlags = [...flags, ...((comment === null || comment === void 0 ? void 0 : comment.modifierTags) || [])];
const HTMLElements = allFlags.map((flag) => makeElement('span', 'flag', flag.replace(/^@/, '')));
this.appendChildren(HTMLElements);
}
}
const yafWidgetFlags = 'yaf-widget-flags';
customElements.define(yafWidgetFlags, YafWidgetFlags);
//# sourceMappingURL=YafWidgetFlags.js.map