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

21 lines
369 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;
metadata?: string[] | { [key: string]: 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
}