From eccd8efaf756dfa76641a61ffd6b337ed9e3ab56 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Thu, 19 May 2022 22:46:38 +0200 Subject: [PATCH] Updated Label (markdown) --- Label.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Label.md b/Label.md index 6d3f665..46554a6 100644 --- a/Label.md +++ b/Label.md @@ -1 +1,15 @@ -WIP \ No newline at end of file +With the Label object you are able to add some text. + +By default label's width is auto sizing based on the length of the text. If you change the size width setSize it will automatically stop autosizing the width. + +Here are all possible functions available for labels:
+Remember label inherits from [object](https://github.com/NoryiE/NyoUI/wiki/Object): + +## setText +sets the text which gets displayed. +````lua +local mainFrame = basalt.createFrame("myFirstFrame"):show() +local aInput = mainFrame:addLabel("myFirstLabel"):setText("Hello lovely basalt community!"):show() +```` +**arguments:** string text
+**returns:** self