495 B
495 B
setHorizontalAlign
Sets the horizontal align of the button text
Parameters:
stringthe position as string ("left", "center", "right") - default is center.
Returns:
objectThe object in use
Usage:
- Sets the button's horizontal text align to right.
local mainFrame = basalt.createFrame()
local button = mainFrame:addButton()
:setText("Click me!")
:setHorizontalAlign("right")
<button text="Click me!" horizontalAlign="right" />