604 B
604 B
setDirection
Description
Sets the scrolling direction of the ScrollableFrame object. The direction can be either "vertical" or "horizontal", which determines how the content inside the ScrollableFrame can be scrolled.
Parameters
stringdirection - The scrolling direction to set. Valid values are "vertical" and "horizontal".
Returns
objectThe object in use
Usage
- Set the scrolling direction for a ScrollableFrame
local mainFrame = basalt.createFrame()
local scrollableFrame = mainFrame:addScrollableFrame()
scrollableFrame:setDirection("horizontal")