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

27 lines
548 B
TypeScript
Raw Normal View History

export interface MenuItemConfig {
label: string;
subitems?: MenuItemConfig[];
action?: () => void;
customHTML?: HTMLElement | string;
customId?: string;
customClassList?: string;
}
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',
}
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;
items: MenuItemConfig[];
}