2025-12-29 00:21:03 +01:00
|
|
|
export interface MenuItemConfig {
|
|
|
|
|
label: string;
|
|
|
|
|
subitems?: MenuItemConfig[];
|
|
|
|
|
action?: () => void;
|
|
|
|
|
customHTML?: HTMLElement;
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-29 11:32:49 +01:00
|
|
|
export enum MenuPosition {
|
|
|
|
|
TopLeft = 'top-left',
|
|
|
|
|
Left = 'left',
|
|
|
|
|
BottomLeft = 'bottom-left',
|
|
|
|
|
Top = 'top',
|
|
|
|
|
Bottom = 'bottom',
|
|
|
|
|
TopRight = 'top-right',
|
|
|
|
|
Right = 'right',
|
|
|
|
|
BottomRight = 'bottom-right',
|
|
|
|
|
}
|
2025-12-29 00:21:03 +01:00
|
|
|
|
|
|
|
|
export interface MenuConfig {
|
2025-12-29 02:34:46 +01:00
|
|
|
isGlobal?: boolean;
|
2025-12-29 11:32:49 +01:00
|
|
|
menuPosition: MenuPosition;
|
|
|
|
|
activationRadius?: number;
|
2025-12-29 00:21:03 +01:00
|
|
|
items: MenuItemConfig[];
|
|
|
|
|
}
|