mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01: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:
@@ -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