Add a context menu for the material so that it can be edited and deleted (closes #133)
This commit is contained in:
parent
c7bafee6b6
commit
fe4abd073f
8 changed files with 42 additions and 17 deletions
6
module/utils/GenericContextMenu.mjs
Normal file
6
module/utils/GenericContextMenu.mjs
Normal 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 ??= ``);
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue