feat(web/menu): allow passing default index for horizontal lists

This commit is contained in:
Luke
2022-08-03 11:49:36 +02:00
committed by Luke
parent 873b531da7
commit a4b25bddf0
2 changed files with 5 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ RegisterCommand('testMenu', function()
lib.setMenuOptions('epic_menu', {
{label = 'Nice 1'},
{label = 'Nice 2', icon = {'fab', 'bitcoin'}},
{label = 'Nice 3', icon = 'biohazard', values={'option 1', 'option 2', 'option 3'}}
{label = 'Nice 3', icon = 'biohazard', values={'option 1', 'option 2', 'option 3'}, defaultIndex = 2}
})
lib.showMenu('epic_menu')
end,