mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-22 02:58:33 +00:00
refactor(web/menu)!: pass scrollIndex or checked in the same value
If the button is a scroll button then `isScroll` is passed into args, if a button is a checkbox then `isCheck` is passed into args. Requires `args` to always be of type `table`
This commit is contained in:
1 parent
c227282ce0
commit
9cc7b9270e
3 files changed
+45
-38
No files matched your search
@@ -10,7 +10,7 @@ interface MenuOptions {
|
||||
values?: Array<string | { label: string; description: string }>;
|
||||
description?: string;
|
||||
defaultIndex?: number;
|
||||
args?: any;
|
||||
args?: Record<any, any>;
|
||||
close?: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user