625 B
625 B
setJustifyContent
Description
Determines how the children are aligned along the off axis
Parameters
stringOne of ("flex-start", "flex-end", "center", "space-between", "space-around") - default is flex-start. Works the same as the property of the same name in CSS flexboxes
Returns
objectThe object in use
Usage
- Creates a default flexbox and sets the align items to space-between.
local main = basalt.createFrame()
local flexbox = mainFrame:addFlexbox()
:setAlignItems("space-between")