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

20 lines
709 B
TypeScript
Raw Normal View History

import { debugData } from '../../../utils/debugData';
import type { RadialMenuItem } from '../../../typings';
export const debugRadial = () => {
debugData<{ items: RadialMenuItem[]; sub?: boolean }>([
{
action: 'openRadialMenu',
data: {
items: [
{ icon: 'palette', label: 'Paint' },
{ iconWidth: 35, iconHeight: 35, icon: 'https://icon-library.com/images/white-icon-png/white-icon-png-18.jpg', label: 'External icon'},
{ icon: 'warehouse', label: 'Garage' },
2023-05-01 02:07:17 -07:00
{ icon: 'palette', label: 'Quite long \ntext' },
{ icon: 'palette', label: 'Paint' },
{ icon: 'warehouse', label: 'Garage' },
],
},
},
]);
};