Allow menu toggling from picture elements, update documentation.
This commit is contained in:
1 parent
1fb3940699
commit
881e544591
3 files changed
+72
-30
No files matched your search
@@ -61,6 +61,15 @@ export class FrigateCardMenu extends LitElement {
|
||||
return menuConfig?.mode.startsWith('hidden-') ?? false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle the menu. Has no action if menu is not hiding/expandable.
|
||||
*/
|
||||
public toggleMenu(): void {
|
||||
if (this._isHidingMenu()) {
|
||||
this.expanded = !this.expanded;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if a given menu configuration is a hiding menu (internal version).
|
||||
* @returns `true` if the menu is hiding, `false` otherwise.
|
||||
|
||||
Reference in new issue
Block a user