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

25 lines
435 B
TypeScript
Raw Normal View History

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;
metadata?:
| string[]
| { [key: string]: any }
| { label: string; value: any }[];
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;
options: Options | Option[];
2022-03-28 16:49:07 +02:00
}