Something went wrong. Try again.
Rewild Your Web forked from me.webbeef.org/browser.html
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142// SPDX-License-Identifier: AGPL-3.0-or-later
import { LitElement, html, css,} from "beaver://shared/third_party/lit/lit-all.min.js";
export { html, css };
export class MenuBase extends LitElement { static properties = { open: { type: Boolean, reflect: true }, };
constructor() { super(); this.open = false; }
handleItemClick(action) { this.dispatchEvent( new CustomEvent("menu-action", { bubbles: true, composed: true, detail: { action }, }), ); this.close(); }
close() { this.open = false; this.dispatchEvent( new CustomEvent("menu-closed", { bubbles: true, composed: true, }), ); }}