add description info to menu values array

This commit is contained in:
Luke committed 2022-10-27 10:21:17 +02:00
1 parent c028dbbace
commit 3c9a5241b9
1 file changed
+2 -1
+2 -1
View File
@@ -33,8 +33,9 @@ lib.registerMenu(data, cb)
* options: `table` (`array`)
* label: `string`
* icon?: `string`
* values?: `table` (`string[]`)
* values?: `table` (`Array<string | {label: string; description: string}>`)
* If provided creates a side scrollabel list.
* When using object and setting description, the set description will be displayed in the menu tooltip.
* description?: `string`
* Displays tooltip below menu on hovered item with provided description.
* defaultIndex?: `number`