mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 22:22:46 +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`)
|
* options: `table` (`array`)
|
||||||
* label: `string`
|
* label: `string`
|
||||||
* icon?: `string`
|
* icon?: `string`
|
||||||
* values?: `table` (`string[]`)
|
* values?: `table` (`Array<string | {label: string; description: string}>`)
|
||||||
* If provided creates a side scrollabel list.
|
* 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`
|
* description?: `string`
|
||||||
* Displays tooltip below menu on hovered item with provided description.
|
* Displays tooltip below menu on hovered item with provided description.
|
||||||
* defaultIndex?: `number`
|
* defaultIndex?: `number`
|
||||||
|
|||||||
Reference in new issue
Block a user