replace badges in blog article list with tags
Signed-off-by: Tobias Erbshäußer <tobias@tesoft.dev>
This commit is contained in:
@@ -116,9 +116,11 @@ export class TesoftBlogArticleList extends TesoftComponent {
|
|||||||
|
|
||||||
const tags = anchor.querySelector<HTMLDivElement>(".tags")!;
|
const tags = anchor.querySelector<HTMLDivElement>(".tags")!;
|
||||||
for (const tagName of article.tags) {
|
for (const tagName of article.tags) {
|
||||||
const badge = document.createElement("tesoft-badge") as TesoftBadge;
|
const tag = document.createElement("tesoft-tag") as TesoftTag;
|
||||||
badge.textContent = tagName;
|
tag.textContent = tagName;
|
||||||
tags.appendChild(badge);
|
tag.selected = "";
|
||||||
|
tag.disabled = "";
|
||||||
|
tags.appendChild(tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.listDiv.appendChild(anchor);
|
this.listDiv.appendChild(anchor);
|
||||||
|
|||||||
Reference in New Issue
Block a user