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:
Luke committed 2022-10-29 15:55:08 +02:00
1 parent c227282ce0
commit 9cc7b9270e
3 files changed
+45 -38

No files matched your search

+1 -1
View File
@@ -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;
}