Files
ox_lib/web/src/typings/context.ts

31 lines
664 B
TypeScript
Raw Normal View History

2022-08-27 15:58:36 +02:00
import { IconProp } from '@fortawesome/fontawesome-svg-core';
export interface Option {
2022-03-28 16:49:07 +02:00
menu?: string;
title?: string;
description?: string;
arrow?: boolean;
2022-06-11 11:49:25 +02:00
image?: string;
icon?: IconProp | string;
iconColor?: string;
progress?: number;
colorScheme?: string;
2023-09-22 13:49:15 +02:00
readOnly?: boolean;
metadata?: string[] | { [key: string]: any } | { label: string; value: any; progress?: number }[];
2022-11-06 11:01:39 +01:00
disabled?: boolean;
2022-04-01 21:22:14 +02:00
event?: string;
serverEvent?: string;
args?: any;
}
export interface Options {
[key: string]: Option;
}
2022-03-28 16:49:07 +02:00
export interface ContextMenuProps {
title: string;
menu?: string;
canClose?: boolean;
options: Options | Option[];
2022-03-28 16:49:07 +02:00
}