diff --git a/Textfield.md b/Textfield.md index 6d3f665..ca14a36 100644 --- a/Textfield.md +++ b/Textfield.md @@ -1 +1,13 @@ -WIP \ No newline at end of file +Textfields are objects, where the user can write something on multiple lines. it act's like the default edit script (without coloring)
+Here is a example of how to create a default textfield: + +````lua +local mainFrame = CreateFrame("myFirstFrame"):show() +local aTextfield = mainFrame:addTextfield("myFirstTextfield"):show() +```` + +This will create a default input with the size 10 width and 4 height on position 1 1 (relative to its parent frame), the default background is colors.gray, the default text color is colors.black and the default zIndex is 5. + +Here are all possible functions available for textfields. Remember textfield inherit from [object](https://github.com/NoryiE/NyoUI/wiki/Object): + +There are currently no customizable functions, maybe i will add some in the future