ultrawidify/src/common/interfaces/ClientUiMenu.interface.ts

24 lines
428 B
TypeScript
Raw Normal View History

export interface MenuItemConfig {
label: string;
subitems?: MenuItemConfig[];
action?: () => void;
customHTML?: HTMLElement;
}
export type MenuAnchor =
| "LeftCenter"
| "RightCenter"
| "TopCenter"
| "BottomCenter"
| "TopLeft"
| "TopRight"
| "BottomLeft"
| "BottomRight";
export interface MenuConfig {
2025-12-29 02:34:46 +01:00
isGlobal?: boolean;
anchor: MenuAnchor;
activationRadius: number;
items: MenuItemConfig[];
}