mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
Update input docs with select example
This commit is contained in:
1 parent
340c3a7375
commit
d596208983
1 file changed
+10
-5
@@ -55,13 +55,18 @@ end
|
||||
|
||||
```lua
|
||||
local input = lib.inputDialog('Police locker', {
|
||||
{ type = "input", label = "Locker number" },
|
||||
{ type = "checkbox", label = "Some checkbox" },
|
||||
{ type = "input", label = "Locker PIN" },
|
||||
{ type = "checkbox", label = "Some other checkbox" },
|
||||
{ type = "input", label = "Locker number" },
|
||||
{ type = "checkbox", label = "Some checkbox" },
|
||||
{ type = "input", label = "Locker PIN" },
|
||||
{ type = "checkbox", label = "Some other checkbox" },
|
||||
{ type = 'select', label = 'Value select', options = {
|
||||
{ value = 'option1', label = 'Option 1' },
|
||||
{ value = 'option2', label = 'Option 2' },
|
||||
{ value = 'option3', label = 'Option 3'},
|
||||
}}
|
||||
})
|
||||
print(json.encode(input, {indent=true}))
|
||||
```
|
||||

|
||||
 
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
Reference in new issue
Block a user