add qr context menus

This commit is contained in:
LenAnderson
2023-11-23 12:21:25 +00:00
parent b4afb10fab
commit cc426e9897
6 changed files with 268 additions and 3 deletions

View File

@ -0,0 +1,27 @@
import { SubMenu } from "./SubMenu.js";
export class MenuHeader {
/**@type {String}*/ label;
/**@type {HTMLElement}*/ root;
constructor(/**@type {String}*/label) {
this.label = label;
}
render() {
if (!this.root) {
const item = document.createElement('li'); {
this.root = item;
item.classList.add('list-group-item');
item.classList.add('ctx-header');
item.append(this.label);
}
}
return this.root;
}
}