Vanessa 2024-10-28 22:04:48 +08:00
parent 1d142c9df1
commit f2a53014fb
16 changed files with 32 additions and 18 deletions

View file

@ -213,6 +213,9 @@ export class MenuItem {
if (options.type === "readonly") {
this.element.classList.add("b3-menu__item--readonly");
}
if (options.icon === "iconTrashcan") {
this.element.classList.add("b3-menu__item--remove");
}
if (options.element) {
this.element.append(options.element);