mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
36 lines
788 B
TypeScript
36 lines
788 B
TypeScript
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
import { IconAnimation } from '../components/LibIcon';
|
|
|
|
export interface Option {
|
|
menu?: string;
|
|
title?: string;
|
|
description?: string;
|
|
arrow?: boolean;
|
|
image?: string;
|
|
icon?: IconProp | string;
|
|
iconColor?: string;
|
|
iconAnimation?: IconAnimation;
|
|
progress?: number;
|
|
colorScheme?: string;
|
|
readOnly?: boolean;
|
|
metadata?:
|
|
| string[]
|
|
| { [key: string]: any }
|
|
| { label: string; value: any; progress?: number; colorScheme?: string }[];
|
|
disabled?: boolean;
|
|
event?: string;
|
|
serverEvent?: string;
|
|
args?: any;
|
|
}
|
|
|
|
export interface Options {
|
|
[key: string]: Option;
|
|
}
|
|
|
|
export interface ContextMenuProps {
|
|
title: string;
|
|
menu?: string;
|
|
canClose?: boolean;
|
|
options: Options | Option[];
|
|
}
|