Docs 1.6
Accidentally uploaded outdated 1.6 docs
This commit is contained in:
17
docs/docs1_6/objects/Button/setText.md
Normal file
17
docs/docs1_6/objects/Button/setText.md
Normal file
@@ -0,0 +1,17 @@
|
||||
## setText
|
||||
Sets the displayed button text
|
||||
#### Parameters:
|
||||
1. `string` the text the button should show
|
||||
|
||||
#### Returns:
|
||||
1. `object` The object in use
|
||||
|
||||
#### Usage:
|
||||
* Creates a button with "Click me!" as text.
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame()
|
||||
local button = mainFrame:addButton():setText("Click me!")
|
||||
```
|
||||
```xml
|
||||
<button text="Click me!" />
|
||||
```
|
||||
Reference in New Issue
Block a user