mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 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
|
```lua
|
||||||
local input = lib.inputDialog('Police locker', {
|
local input = lib.inputDialog('Police locker', {
|
||||||
{ type = "input", label = "Locker number" },
|
{ type = "input", label = "Locker number" },
|
||||||
{ type = "checkbox", label = "Some checkbox" },
|
{ type = "checkbox", label = "Some checkbox" },
|
||||||
{ type = "input", label = "Locker PIN" },
|
{ type = "input", label = "Locker PIN" },
|
||||||
{ type = "checkbox", label = "Some other checkbox" },
|
{ 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}))
|
print(json.encode(input, {indent=true}))
|
||||||
```
|
```
|
||||||

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