399 B
399 B
setDirection
Description
Sets the direction in which the children will be placed
Parameters
stringOne of ("row", "column") - default is row
Returns
objectThe object in use
Usage
- Creates a default flexbox and sets the flex direction to column.
local main = basalt.createFrame()
local flexbox = mainFrame:addFlexbox()
:setDirection("column")