mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
28 lines
708 B
TypeScript
28 lines
708 B
TypeScript
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
import { IconAnimation } from '../components/LibIcon';
|
|
|
|
export type MenuPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
|
|
export interface MenuItem {
|
|
image?: string;
|
|
label: string;
|
|
progress?: number;
|
|
colorScheme?: string;
|
|
checked?: boolean;
|
|
values?: Array<string | { label: string; description: string }>;
|
|
description?: string;
|
|
icon?: IconProp | string;
|
|
iconColor?: string;
|
|
iconAnimation?: IconAnimation;
|
|
defaultIndex?: number;
|
|
close?: boolean;
|
|
}
|
|
|
|
export interface MenuSettings {
|
|
position?: MenuPosition;
|
|
title: string;
|
|
canClose?: boolean;
|
|
items: Array<MenuItem>;
|
|
startItemIndex?: number;
|
|
}
|