Add two pane view to calendar panel (#18286)

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
This commit is contained in:
Bram Kragten
2023-10-23 16:13:38 +02:00
committed by GitHub
parent 6cae11f0a6
commit 463a3244cf
9 changed files with 528 additions and 124 deletions

View File

@@ -26,6 +26,8 @@ export class HaButtonMenu extends LitElement {
@property({ type: Boolean }) public fixed = false;
@property({ type: Boolean, attribute: "no-anchor" }) public noAnchor = false;
@query("mwc-menu", true) private _menu?: Menu;
public get items() {
@@ -82,7 +84,7 @@ export class HaButtonMenu extends LitElement {
if (this.disabled) {
return;
}
this._menu!.anchor = this;
this._menu!.anchor = this.noAnchor ? null : this;
this._menu!.show();
}