Files
ox_lib/web/src/features/dev/debug/menu.ts
T

45 lines
1.2 KiB
TypeScript
Raw Normal View History

2022-08-27 15:58:36 +02:00
import { debugData } from '../../../utils/debugData';
import { MenuSettings } from '../../menu/list';
2022-08-27 15:40:41 +02:00
export const debugMenu = () => {
debugData<MenuSettings>([
{
2022-08-27 15:58:36 +02:00
action: 'setMenu',
2022-08-27 15:40:41 +02:00
data: {
// position: "bottom-left",
2022-08-27 15:58:36 +02:00
title: 'Vehicle garage',
2022-08-27 15:40:41 +02:00
items: [
2022-08-27 15:58:36 +02:00
{ label: 'Option 1', icon: 'heart' },
2022-08-27 15:40:41 +02:00
{
2022-08-27 15:58:36 +02:00
label: 'Option 2',
icon: 'basket-shopping',
description: 'Tooltip description 1',
2022-10-29 12:46:22 +02:00
checked: true,
2022-08-27 15:40:41 +02:00
},
{
2022-08-27 15:58:36 +02:00
label: 'Vehicle class',
values: [
{ label: 'nice', description: 'description 1' },
{ label: 'even nicer', description: 'description 2' },
'pogchamp',
],
2022-08-27 15:58:36 +02:00
icon: 'tag',
2022-08-27 15:40:41 +02:00
},
2022-08-27 15:58:36 +02:00
{ label: 'Option 1' },
{ label: 'Option 2' },
2022-08-27 15:40:41 +02:00
{
2022-08-27 15:58:36 +02:00
label: 'Vehicle class',
values: ['Nice', 'Super nice', 'Extra nice'],
2022-08-27 15:40:41 +02:00
defaultIndex: 1,
},
2022-08-27 15:58:36 +02:00
{ label: 'Option 1' },
{ label: 'Option 2' },
2022-08-27 15:40:41 +02:00
{
2022-08-27 15:58:36 +02:00
label: 'Vehicle class',
values: ['Nice', 'Super nice', 'Extra nice'],
2022-08-27 15:40:41 +02:00
},
],
},
},
]);
};