♻️ b3-menu__checked

This commit is contained in:
Vanessa 2024-03-31 20:27:29 +08:00
parent 6378d1e738
commit 5aabda4b37
4 changed files with 9 additions and 5 deletions

View file

@ -224,6 +224,9 @@ export class MenuItem {
if (options.action) {
html += `<svg class="b3-menu__action${options.action === "iconCloseRound" ? " b3-menu__action--close" : ""}"><use xlink:href="#${options.action}"></use></svg>`;
}
if (options.checked) {
html += '<svg class="b3-menu__checked"><use xlink:href="#iconSelect"></use></svg></span>'
}
this.element.innerHTML = html;
}