Add a context menu for the material so that it can be edited and deleted (closes #133)

This commit is contained in:
Oliver-Akins 2024-03-25 22:52:33 -06:00
parent c7bafee6b6
commit fe4abd073f
8 changed files with 42 additions and 17 deletions

View file

@ -0,0 +1,6 @@
export class GenericContextMenu extends ContextMenu {
constructor(element, selector, menuItems, opts = {}) {
super(element, selector, menuItems, opts);
this.menuItems.forEach(i => i.icon ??= ``);
};
};