mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor(client/radial): allow onSelect as string to call an export
e.g. onSelect = 'menuHandler'
exports('menuHandler', function(menu, item) end)
This commit is contained in:
@@ -4,7 +4,7 @@ type RadialItem = {
|
||||
id: string;
|
||||
label: string;
|
||||
icon: IconName | [IconPrefix, IconName];
|
||||
onSelect?: (currentMenu: string | null, itemIndex: number) => void;
|
||||
onSelect?: (currentMenu: string | null, itemIndex: number) => void | string;
|
||||
menu?: string;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user