You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
383 B
20 lines
383 B
import MenuItem from './menu-item.mjs';
|
|
|
|
class Menu {
|
|
constructor(domNode) {
|
|
this.domNode = domNode;
|
|
this.init();
|
|
}
|
|
init() {
|
|
const menuChildren = this.domNode.childNodes;
|
|
Array.from(menuChildren, (child) => {
|
|
if (child.nodeType === 1) {
|
|
new MenuItem(child);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
export { Menu as default };
|
|
//# sourceMappingURL=menu-bar.mjs.map
|