From c9733cfd05421200268f3460f5f39b542d3b0f94 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Sat, 2 Apr 2022 15:24:40 +0200 Subject: [PATCH] Updated Textfield (markdown) --- Textfield.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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