mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 22:22:46 +00:00
add number input type to input docs
This commit is contained in:
1 parent
fd247606b6
commit
a0555d9a79
1 file changed
+3
-4
@@ -13,7 +13,7 @@ by setting input fields.
|
|||||||
```lua
|
```lua
|
||||||
-- heading: string
|
-- heading: string
|
||||||
-- rows: strings array or table
|
-- rows: strings array or table
|
||||||
-- type: "input" or "checkbox" or "select"
|
-- type: "input" or "number" or "checkbox" or "select"
|
||||||
-- label: string
|
-- label: string
|
||||||
-- options: table array (optional - used ONLY with "select" type)
|
-- options: table array (optional - used ONLY with "select" type)
|
||||||
-- value: string
|
-- value: string
|
||||||
@@ -32,9 +32,8 @@ sent to the dialog, so if we want data from the first field that
|
|||||||
would be index `1`, if we want data from the third field, that would
|
would be index `1`, if we want data from the third field, that would
|
||||||
be index `3`, etc...
|
be index `3`, etc...
|
||||||
|
|
||||||
The input rows will always return a string, if you want a row to be of
|
The standard input rows will always return a string, if you want a row to be of
|
||||||
number data type, you can use the `tonumber` function to convert it to
|
number data type, you can use set the `type` to `number`.
|
||||||
a number instead.
|
|
||||||
|
|
||||||
If a user left an input field empty it will return `nil`.
|
If a user left an input field empty it will return `nil`.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user