Merge pull request #118 from BerkieBb/master

Added missing cb field to MenuProps
This commit is contained in:
Luke
2022-10-08 12:08:44 +02:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ interface MenuProps {
onClose?: (keyPressed?: 'Escape' | 'Backspace') => void;
onSelected?: ChangeFunction;
onSideScroll?: ChangeFunction;
cb?: ChangeFunction;
}
type registerMenu = (data: MenuProps, cb: ChangeFunction) => void;

View File

@@ -26,6 +26,7 @@ local keepInput = IsNuiFocusKeepingInput()
---@field onClose? fun(keyPressed?: 'Escape' | 'Backspace')
---@field onSelected? MenuChangeFunction
---@field onSideScroll? MenuChangeFunction
---@field cb? MenuChangeFunction
---@param data MenuProps
---@param cb? MenuChangeFunction