621 B
621 B
getJustifyContent
Description
Returns the current method used for aligning the child objects along the main axis within the Flexbox.
Returns
stringThe method used for aligning the child objects. Possible values are:flex-start,flex-end,center,space-between,space-around, andspace-evenly.
Usage
- Creates a default Flexbox, sets the justify content, and then retrieves it.
local main = basalt.createFrame()
local flexbox = mainFrame:addFlexbox()
:setJustifyContent("space-between")
local justifyContent = flexbox:getJustifyContent() -- returns "space-between"