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