499 B
499 B
getDirection
Description
Returns the current direction in which the child objects are arranged within the Flexbox.
Returns
stringThe direction in which the child objects are arranged. Possible values are: row, column.
Usage
- Creates a default Flexbox, sets the direction, and then retrieves it.
local main = basalt.createFrame()
local flexbox = mainFrame:addFlexbox()
:setDirection("column")
local direction = flexbox:getDirection() -- returns "column"