mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
Merge pull request #118 from BerkieBb/master
Added missing cb field to MenuProps
This commit is contained in:
@@ -23,6 +23,7 @@ interface MenuProps {
|
|||||||
onClose?: (keyPressed?: 'Escape' | 'Backspace') => void;
|
onClose?: (keyPressed?: 'Escape' | 'Backspace') => void;
|
||||||
onSelected?: ChangeFunction;
|
onSelected?: ChangeFunction;
|
||||||
onSideScroll?: ChangeFunction;
|
onSideScroll?: ChangeFunction;
|
||||||
|
cb?: ChangeFunction;
|
||||||
}
|
}
|
||||||
|
|
||||||
type registerMenu = (data: MenuProps, cb: ChangeFunction) => void;
|
type registerMenu = (data: MenuProps, cb: ChangeFunction) => void;
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ local keepInput = IsNuiFocusKeepingInput()
|
|||||||
---@field onClose? fun(keyPressed?: 'Escape' | 'Backspace')
|
---@field onClose? fun(keyPressed?: 'Escape' | 'Backspace')
|
||||||
---@field onSelected? MenuChangeFunction
|
---@field onSelected? MenuChangeFunction
|
||||||
---@field onSideScroll? MenuChangeFunction
|
---@field onSideScroll? MenuChangeFunction
|
||||||
|
---@field cb? MenuChangeFunction
|
||||||
|
|
||||||
---@param data MenuProps
|
---@param data MenuProps
|
||||||
---@param cb? MenuChangeFunction
|
---@param cb? MenuChangeFunction
|
||||||
|
|||||||
Reference in New Issue
Block a user