Updated Input (markdown)

Robert Jelic
2022-05-02 18:32:01 +02:00
parent 9b2738da73
commit a962c306d6

@@ -1,14 +1,7 @@
Inputs are objects, where the user can write something and you can read it.<br> With input's you are able to create a object where the user can type something in.<br>
Here is a example of how to create a standard input:
````lua Here are all possible functions available for inputs:<br>
local mainFrame = CreateFrame("myFirstFrame"):show() Remember input inherits from [object](https://github.com/NoryiE/NyoUI/wiki/Object):
local aInput = mainFrame:addInput("myFirstInput"):show()
````
This will create a default input with the size 5 width and 1 height on position 1 1 (relative to its parent frame), the default background is colors.lightBlue, the default text color is colors.black and the default zIndex is 5.
Here are all possible functions available for inputs. Remember input inherit from [object](https://github.com/NoryiE/NyoUI/wiki/Object):
## setInputType ## setInputType
changes the input type changes the input type
@@ -16,5 +9,5 @@ changes the input type
local mainFrame = CreateFrame("myFirstFrame"):show() local mainFrame = CreateFrame("myFirstFrame"):show()
local aInput = mainFrame:addInput("myFirstInput"):setInputType("password"):show() local aInput = mainFrame:addInput("myFirstInput"):setInputType("password"):show()
```` ````
**args:** "text", "password", "number" are the possible input types - default is text<br> **parameters:** string value ("text", "password", "number")<br>
**returns:** the object<br> **returns:** self<br>