mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
add description info to menu values array
This commit is contained in:
1 parent
c028dbbace
commit
3c9a5241b9
1 file changed
+2
-1
@@ -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`
|
||||
|
||||
Reference in new issue
Block a user