mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-24 11:58:35 +00: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:
1 parent
2000654546
commit
79e91ee452
2 files changed
+13
-3
No files matched your search
@@ -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