mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-15 09:33:55 +00:00
refactor(web/menu): radial menu visibility handling
This commit is contained in:
1 parent
ea74e5705f
commit
26a1ecb93d
3 files changed
+77
-68
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { debugData } from '../../../utils/debugData';
|
||||
import type { MenuItem } from '../../menu/radial';
|
||||
|
||||
export const debugRadial = () => {
|
||||
debugData<{ items: MenuItem[]; sub?: boolean }>([
|
||||
{
|
||||
action: 'openRadialMenu',
|
||||
data: {
|
||||
items: [
|
||||
// TODO: Fix wheel being broken when there's only one item
|
||||
{ icon: 'palette', label: 'Paint' },
|
||||
{ icon: 'warehouse', label: 'Garage' },
|
||||
{ icon: 'palette', label: 'Quite long text' },
|
||||
{ icon: 'palette', label: 'Paint' },
|
||||
{ icon: 'warehouse', label: 'Garage' },
|
||||
],
|
||||
},
|
||||
},
|
||||
]);
|
||||
};
|
||||
Reference in new issue
Block a user