mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
feat(web/progress): progress bar in context menu's metadata (#217)
* feature: progress bar in context menu's metadata * undefined check `metadata.progress`
This commit is contained in:
@@ -9,6 +9,32 @@ export const debugContext = () => {
|
||||
title: 'Vehicle garage',
|
||||
options: [
|
||||
{ title: 'Empty button' },
|
||||
{
|
||||
title: 'Karin Kuruma',
|
||||
image: 'https://cdn.discordapp.com/attachments/1063098499027173461/1064276343585505330/screenshot.jpg',
|
||||
arrow: true,
|
||||
colorScheme: 'blue',
|
||||
metadata: [
|
||||
{
|
||||
["label"]: "Body",
|
||||
["value"]: "55%",
|
||||
["progress"]: 55
|
||||
},
|
||||
{
|
||||
["label"]: "Engine",
|
||||
["value"]: "100%",
|
||||
["progress"]: 100
|
||||
},
|
||||
{
|
||||
["label"]: "Oil",
|
||||
["progress"]: 11
|
||||
},
|
||||
{
|
||||
["label"]: "Fuel",
|
||||
["progress"]: 87
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Example button',
|
||||
description: 'Example button description',
|
||||
|
||||
Reference in New Issue
Block a user