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

29 lines
623 B
TypeScript
Raw Normal View History

import { InPlayerUIOptions } from '@src/common/interfaces/SettingsInterface';
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;
ui: InPlayerUIOptions;
2025-12-29 11:32:49 +01:00
menuPosition: MenuPosition;
items: MenuItemConfig[];
}