353 B
353 B
setText
Sets the displayed button text
Parameters:
stringthe text the button should show
Returns:
objectThe object in use
Usage:
- Creates a button with "Click me!" as text.
local mainFrame = basalt.createFrame()
local button = mainFrame:addButton():setText("Click me!")
<button text="Click me!" />